In the netfront_rxq struct, we should use NET_RX_RING_SIZE, not

NET_TX_RING_SIZE.

Reviewed by:	royger
This commit is contained in:
Olivier Houchard 2017-01-03 17:24:56 +00:00
parent 722e888dce
commit 36ea572167
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311159

View File

@ -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];