Author: glebius
Date: Mon Feb 23 18:55:26 2015
New Revision: 279212
URL: https://svnweb.freebsd.org/changeset/base/279212
Log:
Previous version of mbufq were fine initialized by M_ZERO, while
new one require explicti initialization.
Reported by: royger
Modified:
head/sys/dev/xen/netfront/netfront.c
Modified: head/sys/dev/xen/netfront/netfront.c
==============================================================================
--- head/sys/dev/xen/netfront/netfront.c Mon Feb 23 18:38:41 2015
(r279211)
+++ head/sys/dev/xen/netfront/netfront.c Mon Feb 23 18:55:26 2015
(r279212)
@@ -2062,6 +2062,9 @@ create_netdev(device_t dev)
np->rx_mbufs[i] = NULL;
np->grant_rx_ref[i] = GRANT_REF_INVALID;
}
+
+ mbufq_init(&np->xn_rx_batch, INT_MAX);
+
/* A grant for every tx ring slot */
if (gnttab_alloc_grant_references(NET_TX_RING_SIZE,
&np->gref_tx_head) != 0) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"