]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add BNXT_STATE_IN_FW_RESET state.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:54:56 +0000 (23:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:19 +0000 (14:02 -0700)
commit81e6a17edf013ab4927ba4a37362221d28fbfca8
tree684345372254205bd5517393872ed8cb02c7304b
parenta49671425eddac6cf0f3990c7138d83290455f02
bnxt_en: Add BNXT_STATE_IN_FW_RESET state.

The new flag will be set in subsequent patches when firmware is
going through reset.  If bnxt_close() is called while the new flag
is set, the FW reset sequence will have to be aborted because the
NIC is prematurely closed before FW reset has completed.  We also
reject SRIOV configurations while FW reset is in progress.

v2: No longer drop rtnl_lock() in close and wait for FW reset to complete.

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
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c