Subject: CVS commit: [netbsd-3] src/sys/arch/xen/xen
To: None <>
From: Manuel Bouyer <>
List: source-changes
Date: 11/11/2006 22:13:11
Module Name:	src
Committed By:	bouyer
Date:		Sat Nov 11 22:13:11 UTC 2006

Modified Files:
	src/sys/arch/xen/xen [netbsd-3]: if_xennet_xenbus.c

Log Message:
Pull up following revision(s) (requested by jld in ticket #1581):
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.14
Recycle old buffers into new rx requests when their number reaches half of
those not tied up in active mbufs, rather than half of the total number.
(Or, to more literally translate the C, when there are at least as
many buffers waiting to be reused as outstanding rx requests.)
This prevents us from dropping off the network for a while when more
than 128 of the 256 buffers are in use by mbufs, which might not be
freed for an arbitrarily long time; the remaining buffers would stack up
on the free list but not be reclaimed until enough mbufs were eventually
freed, leaving the interface unable to receive packets until then.

To generate a diff of this commit:
cvs rdiff -r1.7.2.4 -r1.7.2.5 src/sys/arch/xen/xen/if_xennet_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.