]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Handle firmware reset status during IF_UP.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:54:52 +0000 (23:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:18 +0000 (14:02 -0700)
commit9f6c020ad4100ba94f6acc1f5ebcc048cf3389c8
tree03e211c41ac3594d15f927b241c5a50f07698837
parent6b218df256758281c670743fcf308f1b58ca4d29
bnxt_en: Handle firmware reset status during IF_UP.

During IF_UP, newer firmware has a new status flag that indicates that
firmware has reset.  Add new function bnxt_fw_init_one() to re-probe the
firmware and re-setup VF resources on the PF if necessary.  If the
re-probe fails, set a flag to prevent bnxt_open() from proceeding again.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
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