direct-io.hg

changeset 11690:38f9bd7a4ce6

[NET] Make MAX_SKBUFF_ORDER page-size independent.
Original patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Oct 03 11:39:22 2006 +0100 (2006-10-03)
parents 6df04adab323
children 74855cdc4a1d 5f077cd6f58c
files linux-2.6-xen-sparse/drivers/xen/core/skbuff.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/skbuff.c	Tue Oct 03 11:33:37 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/skbuff.c	Tue Oct 03 11:39:22 2006 +0100
     1.3 @@ -18,7 +18,12 @@
     1.4  /*static*/ kmem_cache_t *skbuff_cachep;
     1.5  EXPORT_SYMBOL(skbuff_cachep);
     1.6  
     1.7 -#define MAX_SKBUFF_ORDER 4
     1.8 +/* Allow up to 64kB or page-sized packets (whichever is greater). */
     1.9 +#if PAGE_SHIFT < 16
    1.10 +#define MAX_SKBUFF_ORDER (16 - PAGE_SHIFT)
    1.11 +#else
    1.12 +#define MAX_SKBUFF_ORDER 0
    1.13 +#endif
    1.14  static kmem_cache_t *skbuff_order_cachep[MAX_SKBUFF_ORDER + 1];
    1.15  
    1.16  static struct {