Subject: CVS commit: src/sys/arch/xen/xen
To: None <source-changes@NetBSD.org>
From: Jed Davis <jld@netbsd.org>
List: source-changes
Date: 11/03/2006 03:03:32
Module Name:	src
Committed By:	jld
Date:		Fri Nov  3 03:03:32 UTC 2006

Modified Files:
	src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
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.13 -r1.14 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.