mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue