From b3fb8c5ea03518be598f3aafa87c51df66702a6a Mon Sep 17 00:00:00 2001 From: Harish Patil Date: Tue, 25 Apr 2017 00:28:37 -0700 Subject: [PATCH] net/qede: fix fastpath rings reset phase Perform reset of the fastpath RX/TX rings after stopping device port and not while starting the ports. Fixes: cfe28a988565 ("net/qede: support unequal number of Rx/Tx queues") Cc: stable@dpdk.org Signed-off-by: Harish Patil --- drivers/net/qede/qede_rxtx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c index c6add0f90f..7623a01373 100644 --- a/drivers/net/qede/qede_rxtx.c +++ b/drivers/net/qede/qede_rxtx.c @@ -1712,10 +1712,6 @@ int qede_dev_start(struct rte_eth_dev *eth_dev) /* Bring-up the link */ qede_dev_set_link_state(eth_dev, true); - /* Reset ring */ - if (qede_reset_fp_rings(qdev)) - return -ENOMEM; - /* Start/resume traffic */ qdev->ops->fastpath_start(edev); @@ -1835,6 +1831,7 @@ static int qede_stop_queues(struct qede_dev *qdev) } } } + qede_reset_fp_rings(qdev); return 0; } -- 2.20.1