public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Source code compatibility in Stable series????
@ 2001-05-11 12:21 Petr Vandrovec
  2001-05-11 10:32 ` Andi Kleen
  2001-05-11 11:16 ` David S. Miller
  0 siblings, 2 replies; 13+ messages in thread
From: Petr Vandrovec @ 2001-05-11 12:21 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Rogier Wolff, linux-kernel, davem

On 11 May 01 at 12:03, Andi Kleen wrote:
> On Fri, May 11, 2001 at 02:56:35AM -0700, David S. Miller wrote:
> I guess it would be possible to add a HAVE_ZEROCOPY to skbuff.h to make
> it a bit easier for single source drivers.
> 
> --- include/linux/skbuff.h-o    Wed May  9 12:36:44 2001
> +++ include/linux/skbuff.h  Fri May 11 12:12:43 2001
> @@ -29,6 +29,7 @@
>  #define HAVE_ALLOC_SKB     /* For the drivers to know */
>  #define HAVE_ALIGNABLE_SKB /* Ditto 8)        */
>  #define SLAB_SKB       /* Slabified skbuffs       */
> +#define HAVE_ZEROCOPY      /* Zerocopy stack */ 

When I was updating VMware's vmnet, I decided to use

#ifdef skb_shinfo

This gives you maximal backward compatibility, as all public zerocopy
patches contain this macro. Only thing is that Dave has to remember
that when he turns skb_shinfo into inline function, an identity #define have
to be added.

Just my opinion - as you cannot add HAVE_ZEROCOPY to all already existing
and installed kernels.
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Source code compatibility in Stable series????
@ 2001-05-11 13:08 Petr Vandrovec
  0 siblings, 0 replies; 13+ messages in thread
From: Petr Vandrovec @ 2001-05-11 13:08 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Rogier Wolff, linux-kernel, davem

On 11 May 01 at 12:32, Andi Kleen wrote:
> On Fri, May 11, 2001 at 12:21:59PM +0000, Petr Vandrovec wrote:
> > When I was updating VMware's vmnet, I decided to use
> > 
> > #ifdef skb_shinfo
> 
> Yes I forgot that RedHat already shipped it :-(

Not only that RedHat shipped it, but thousands of people used Alan's
patches since 25th February. So you cannot check kernel version for >=2.4.4.
 
> > This gives you maximal backward compatibility, as all public zerocopy
> > patches contain this macro. Only thing is that Dave has to remember
> > that when he turns skb_shinfo into inline function, an identity #define have
> > to be added.
> 
> No such guarantee for binary only software ;)

vmnet is GPLed software, if you did not notice ;-) Fortunately change
went into Alan tree first, so I noticed long before 2.4.4 came out. Although
it took nonzero effort to persuade others that it will go into Linus's 2.4.x
even if it breaks API. They did not trust me that source compatibility 
in stable series is only a wish.
                                                        Petr Vandrovec
                                                        vandrove@vc.cvut.cz

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Source code compatibility in Stable series????
@ 2001-05-11  9:47 Rogier Wolff
  2001-05-11  9:56 ` David S. Miller
  0 siblings, 1 reply; 13+ messages in thread
From: Rogier Wolff @ 2001-05-11  9:47 UTC (permalink / raw)
  To: linux-kernel


Hi,

It seems that in 2.4.4 suddenly the function "skb_cow" no longer
returns the modified skb, but it retuns and integer for
succes/failure.

This means that for networking modules requiring this function, there
is no source code compatibilty between 2.4.3 and 2.4.4.

			Roger. 

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots. 
* There are also old, bald pilots. 

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-05-11 11:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-11 12:21 Source code compatibility in Stable series???? Petr Vandrovec
2001-05-11 10:32 ` Andi Kleen
2001-05-11 10:39   ` Rogier Wolff
2001-05-11 10:44     ` Andi Kleen
2001-05-11 10:52       ` Rogier Wolff
2001-05-11 11:19       ` David S. Miller
2001-05-11 11:19     ` David S. Miller
2001-05-11 11:16 ` David S. Miller
  -- strict thread matches above, loose matches on Subject: below --
2001-05-11 13:08 Petr Vandrovec
2001-05-11  9:47 Rogier Wolff
2001-05-11  9:56 ` David S. Miller
2001-05-11 10:03   ` Andi Kleen
2001-05-11 11:13     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox