[dpdk-stable] [PATCH v2 07/12] net/bnxt: reduce cleanup time during reset recovery

Ajit Khaparde ajit.khaparde at broadcom.com
Thu Oct 10 03:41:48 CEST 2019


From: Rahul Gupta <rahul.gupta at broadcom.com>

In stop_op(), don't wait for link down event's ASYNC response from FW.

Fixes: 7c9b9cebadfc ("net/bnxt: fix async link handling and update")
Cc: stable at dpdk.org
Signed-off-by: Rahul Gupta <rahul.gupta at broadcom.com>
Reviewed-by: Kalesh Anakkur Purayil <kalesh-anakkur.purayil at broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
 drivers/net/bnxt/bnxt_ethdev.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 84f7b87f31..69dafc41ff 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -967,8 +967,12 @@ static void bnxt_dev_stop_op(struct rte_eth_dev *eth_dev)
 		eth_dev->data->dev_link.link_status = 0;
 	}
 	bnxt_dev_set_link_down_op(eth_dev);
-	/* Wait for link to be reset and the async notification to process. */
-	rte_delay_ms(BNXT_LINK_WAIT_INTERVAL * 2);
+
+	/* Wait for link to be reset and the async notification to process.
+	 * During reset recovery, there is no need to wait
+	 */
+	if (!is_bnxt_in_error(bp))
+		rte_delay_ms(BNXT_LINK_WAIT_INTERVAL * 2);
 
 	/* Clean queue intr-vector mapping */
 	rte_intr_efd_disable(intr_handle);
-- 
2.20.1 (Apple Git-117)



More information about the stable mailing list