WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [patch merge tree] netfront needs more headroom

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [patch merge tree] netfront needs more headroom
From: Gerd Knorr <kraxel@xxxxxxx>
Date: Wed, 07 Dec 2005 16:48:34 +0100
Cc: Jan Beulich <JBeulich@xxxxxxxxxx>
Delivery-date: Wed, 07 Dec 2005 15:49:13 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050715)
  Hi,

Raised the headrum size from 200 to 512. I've got "Received packet needs 120 bytes more headroom." in my syslog, so 200 is obviously too small.

Increased to 512 as the slab allocator gives out pieces of memory with sizes being powers of two, so the old allocation size already was 256 and anything larger than that will end up being 512 anyway (unless we create our own memory pool with custom size ...)

cheers,

  Gerd
Subject: xen netfront driver needs more headroom
From: kraxel@xxxxxxx

Index: linux-2.6.14/drivers/xen/netfront/netfront.c
===================================================================
--- linux-2.6.14.orig/drivers/xen/netfront/netfront.c   2005-12-07 
16:26:12.000000000 +0100
+++ linux-2.6.14/drivers/xen/netfront/netfront.c        2005-12-07 
16:27:47.000000000 +0100
@@ -77,7 +77,7 @@
     } while (0)
 
 /* Allow headroom on each rx pkt for Ethernet header, alignment padding, ... */
-#define RX_HEADROOM 200
+#define RX_HEADROOM 512
 
 static unsigned long rx_pfn_array[NET_RX_RING_SIZE];
 static multicall_entry_t rx_mcl[NET_RX_RING_SIZE+1];
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>