From: Harish Patil Date: Tue, 25 Apr 2017 07:28:37 +0000 (-0700) Subject: net/qede: fix fastpath rings reset phase X-Git-Tag: spdx-start~3354 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b3fb8c5ea03518be598f3aafa87c51df66702a6a;p=dpdk.git 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 --- 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; }