From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Knorr Subject: [patch merge tree] netfront needs more headroom Date: Wed, 07 Dec 2005 16:48:34 +0100 Message-ID: <43970452.9080508@suse.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060603070904010102050603" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------060603070904010102050603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060603070904010102050603 Content-Type: text/plain; name="xen3-fixup-net-headroom" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen3-fixup-net-headroom" Subject: xen netfront driver needs more headroom From: kraxel@suse.de 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]; --------------060603070904010102050603 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------060603070904010102050603--