From: Konstantin Ananyev Date: Mon, 27 Jul 2015 13:28:16 +0000 (+0100) Subject: ixgbe: fix Rx queue reset X-Git-Tag: spdx-start~8630 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=48e967695ba78e6ca8f7b6c754251c240b0ee87f;p=dpdk.git ixgbe: fix Rx queue reset As Steve pointed out, the commit 11b220c6498d ("ixgbe: fix release queue mbufs") is not complete. As at queue stop we don't reset vector related rx queue fields to their initial values. Fixes: c95584dc2b18 ("ixgbe: new vectorized functions for Rx/Tx") Reported-by: Cunming Liang Signed-off-by: Konstantin Ananyev --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index cbb16b69e6..a0c88473a2 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -2400,6 +2400,11 @@ ixgbe_reset_rx_queue(struct ixgbe_adapter *adapter, struct ixgbe_rx_queue *rxq) rxq->nb_rx_hold = 0; rxq->pkt_first_seg = NULL; rxq->pkt_last_seg = NULL; + +#ifdef RTE_IXGBE_INC_VECTOR + rxq->rxrearm_start = 0; + rxq->rxrearm_nb = 0; +#endif } int __attribute__((cold))