svn commit: r279212 - head/sys/dev/xen/netfront
Gleb Smirnoff
glebius at FreeBSD.org
Mon Feb 23 18:55:27 UTC 2015
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) {
More information about the svn-src-all
mailing list