bnxt_en: Do not send firmware messages if firmware is in error state.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:55:02 +0000 (23:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:19 +0000 (14:02 -0700)
commitb4fff2079d1080af7dcad8ad0e80cc89e1ee000c
treefc8fb0d4b1d7bf90c79c6959ea410b5741673983
parent2cd8696850450b750f278be06ee56eb51d84621c
bnxt_en: Do not send firmware messages if firmware is in error state.

Add a flag to mark that the firmware has encountered fatal condition.
The driver will not send any more firmware messages and will return
error to the caller.  Fix up some clean up functions to continue
and not abort when the firmware message function returns error.

This is preparation work to fully handle firmware error recovery
under fatal conditions.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h