Date: Tue, 3 Jan 2017 17:24:56 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311159 - head/sys/dev/xen/netfront Message-ID: <201701031724.v03HOuQk001434@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cognet Date: Tue Jan 3 17:24:56 2017 New Revision: 311159 URL: https://svnweb.freebsd.org/changeset/base/311159 Log: In the netfront_rxq struct, we should use NET_RX_RING_SIZE, not NET_TX_RING_SIZE. Reviewed 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 Tue Jan 3 17:16:13 2017 (r311158) +++ head/sys/dev/xen/netfront/netfront.c Tue Jan 3 17:24:56 2017 (r311159) @@ -168,7 +168,7 @@ struct netfront_rxq { xen_intr_handle_t xen_intr_handle; grant_ref_t gref_head; - grant_ref_t grant_ref[NET_TX_RING_SIZE + 1]; + grant_ref_t grant_ref[NET_RX_RING_SIZE + 1]; struct mbuf *mbufs[NET_RX_RING_SIZE + 1];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701031724.v03HOuQk001434>