All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make MAX_SKBUFF_ORDER page size independent
@ 2006-10-03  5:06 Isaku Yamahata
  2006-10-03  6:43 ` [Xen-ia64-devel] " Tristan Gingold
  0 siblings, 1 reply; 6+ messages in thread
From: Isaku Yamahata @ 2006-10-03  5:06 UTC (permalink / raw)
  To: xen-devel; +Cc: xen-ia64-devel

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]


make MAX_SKBUFF_ORDER page size independent.
Presumably the original value 4 comes from 64KB = (4KB << 4) which is
ip packet maximum size.
However page size is not always 4KB. e.g. IA64 default page size is 16KB.

-- 
yamahata

[-- Attachment #2: 11771:93590d295f38_max_skbuff_order.patch --]
[-- Type: text/plain, Size: 976 bytes --]

# HG changeset patch
# User yamahata@valinux.co.jp
# Date 1159851774 -32400
# Node ID 93590d295f381e50cd95a161379da3ec9129fdfe
# Parent  121ea4bab59bed2bbcb6fee321d49d138954fcfd
make MAX_SKBUFF_ORDER page size independent.
Presumably the original value 4 comes from 64KB = (4KB << 4) which is
ip packet maximum size.
However page size is not always 4KB. e.g. IA64 default page size is 16KB.
PATCHNAME: max_skbuff_order

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

diff -r 121ea4bab59b -r 93590d295f38 linux-2.6-xen-sparse/drivers/xen/core/skbuff.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/skbuff.c	Tue Oct 03 13:46:08 2006 +0900
+++ b/linux-2.6-xen-sparse/drivers/xen/core/skbuff.c	Tue Oct 03 14:02:54 2006 +0900
@@ -18,7 +18,7 @@
 /*static*/ kmem_cache_t *skbuff_cachep;
 EXPORT_SYMBOL(skbuff_cachep);
 
-#define MAX_SKBUFF_ORDER 4
+#define MAX_SKBUFF_ORDER (16 - PAGE_SHIFT)
 static kmem_cache_t *skbuff_order_cachep[MAX_SKBUFF_ORDER + 1];
 
 static struct {

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2006-10-03 21:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03  5:06 [PATCH] make MAX_SKBUFF_ORDER page size independent Isaku Yamahata
2006-10-03  6:43 ` [Xen-ia64-devel] " Tristan Gingold
2006-10-03  6:59   ` Keir Fraser
2006-10-03  8:28     ` Tristan Gingold
2006-10-03 21:06       ` Alex Williamson
2006-10-03  9:22   ` Isaku Yamahata

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.