summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2015-07-27 14:28:16 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-27 15:59:58 +0200
commit48e967695ba78e6ca8f7b6c754251c240b0ee87f (patch)
tree92659862c60ad7eff7ed71f4327ad7c9bbb988d9
parentf76640a8498e85d60e25fbd9499cf69477fd8927 (diff)
downloaddpdk-48e967695ba78.zip
dpdk-48e967695ba78.tar.gz
dpdk-48e967695ba78.tar.xz
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 <cunming.liang@intel.com> Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
-rw-r--r--drivers/net/ixgbe/ixgbe_rxtx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c
index cbb16b6..a0c8847 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))