Date: Mon, 23 Feb 2015 18:55:27 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279212 - head/sys/dev/xen/netfront Message-ID: <201502231855.t1NItR0Y078659@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502231855.t1NItR0Y078659>