From 49e6be9c3d772c5ccf3e251288de3daa67c62dc4 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 23 Feb 2015 18:55:26 +0000 Subject: [PATCH] Previous version of mbufq were fine initialized by M_ZERO, while new one require explicti initialization. Reported by: royger --- sys/dev/xen/netfront/netfront.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index b97af6239ce..de80bb95acc 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -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) {