net/bnxt: fix port stop on error recovery failure
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 6 Feb 2020 16:33:12 +0000 (22:03 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commite5acec69294891c3bdd18c2a8177de74fb435c2d
treeb9d5d98e3f9349175a95355efa7774c7ac9963b7
parent990d4978fa837cee90100687d563eefc802b37fc
net/bnxt: fix port stop on error recovery failure

During live FW upgrade or error recovery, if restoring the filter
settings fail after port start, driver invokes bnxt_uninit_resources()
only. Fix it to invoke bnxt_dev_stop_op() first before calling
bnxt_uninit_resources().

Fixes: df6cd7c1f73a ("net/bnxt: handle reset notify async event from FW")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Rahul Gupta <rahul.gupta@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c