[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.0-testing] [LINUX] Network buffers do not need to be multi-page contiguous
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID c2ad3b08f272f8b7eeec1243268b9c422531829a # Parent 1fa7c3a50ab030c23bdb3da205fbed0f9fda82f0 [LINUX] Network buffers do not need to be multi-page contiguous for unprivileged domains (in any case, can fall back to swiotlb). On non-privileged domain of Xen/IA64, this caused some trouble. [Note: this patch will be removed when xen_create_contiguous_region() is fixed properly.] Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> xen-unstable changeset: 10356:4f0bc574455751ed0493f083c13911d8e01b92f0 xen-unstable date: Thu Jun 15 13:19:04 2006 +0100 --- linux-2.6-xen-sparse/drivers/xen/core/skbuff.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff -r 1fa7c3a50ab0 -r c2ad3b08f272 linux-2.6-xen-sparse/drivers/xen/core/skbuff.c --- a/linux-2.6-xen-sparse/drivers/xen/core/skbuff.c Thu Jun 15 13:14:20 2006 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/core/skbuff.c Thu Jun 15 13:44:33 2006 +0100 @@ -121,8 +121,14 @@ static int __init skbuff_init(void) for (order = 0; order <= MAX_SKBUFF_ORDER; order++) { size = PAGE_SIZE << order; sprintf(name[order], "xen-skb-%lu", size); - skbuff_order_cachep[order] = kmem_cache_create( - name[order], size, size, 0, skbuff_ctor, skbuff_dtor); + if (xen_start_info->flags & SIF_PRIVILEGED) + skbuff_order_cachep[order] = kmem_cache_create( + name[order], size, size, 0, + skbuff_ctor, skbuff_dtor); + else + skbuff_order_cachep[order] = kmem_cache_create( + name[order], size, size, 0, NULL, NULL); + } skbuff_cachep = skbuff_order_cachep[0]; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |