net/bnxt: invoke device removal event on recovery failure
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 9 Jun 2021 03:13:32 +0000 (08:43 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 8 Jul 2021 03:55:51 +0000 (05:55 +0200)
commit8ac3cbba621ad1887b069b271115faf76bf04b75
tree00a50239f5b4defb0ba64a17b17d6ef0bc879e11
parent70c7d4184cb9a32ab6c65ce67ce5fbe3a5be5294
net/bnxt: invoke device removal event on recovery failure

When the driver receives RESET_NOTIFY async event from FW or detects
a FW fatal error condition, it tries to recover from the error.
When the driver fails to recover from the error condition, fixed to
send device removal event to the application.

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: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c