Subject: CVS commit: src/sys/arch/xen/xen
To: None <>
From: Manuel Bouyer <>
List: source-changes
Date: 10/08/2005 20:22:05
Module Name:	src
Committed By:	bouyer
Date:		Sat Oct  8 20:22:05 UTC 2005

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

Log Message:
If a domain has more than one interface, a page can hold packets for different
xennetback instances. To support this, more fields from xni_page to xni_pkt.
This would also have the effect to move more code into the
while (!SLIST_EMPTY(&pkt_page->xni_pkt_head)) loop in xennetback_tx_free().
By passing xni_pkt instead of xni_page to xennetback_tx_free we can
avoid the loop, and the xni_pkt_head list completely. There is even a sligh
performance increase if the domU deals with xni_txring->event properly.

Based on comments from YAMAMOTO Takashi.

To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 src/sys/arch/xen/xen/xennetback.c

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