Previous version of mbufq were fine initialized by M_ZERO, while

new one require explicti initialization.

Reported by:	royger
This commit is contained in:
Gleb Smirnoff 2015-02-23 18:55:26 +00:00
parent f5757453dc
commit 49e6be9c3d

View File

@ -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) {