net/bnxt: fix recovery alarm race condition in port close
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Fri, 28 Feb 2020 10:21:31 +0000 (15:51 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commit10d698200824060dbe6171c94a7b20380b624f1a
tree98508f3ce50d913b6d9ab9a48cfdf04f6ae2aa12
parentf761def5125cf7dc23a15eb2bf57206f5930801e
net/bnxt: fix recovery alarm race condition in port close

There is a race condition when port is closed while error recovery
is happening in driver. Fixed this by canceling the recovery threads
during port close.

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: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c