Previous version of mbufq were fine initialized by M_ZERO, while
new one require explicti initialization. Reported by: royger
This commit is contained in:
parent
f5757453dc
commit
49e6be9c3d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user