bnxt_en: Fix AER reset logic on 57500 chips.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 14 Jun 2020 23:57:09 +0000 (19:57 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2020 20:28:33 +0000 (13:28 -0700)
commit6e2f83884c099de0e87b15a820736e522755d074
tree55c7efe45a5bb8ea5fb58a47ea8b4bf00481a930
parent59ae210173ff86256fa0cdba4ea4d608c61e123d
bnxt_en: Fix AER reset logic on 57500 chips.

AER reset should follow the same steps as suspend/resume.  We need to
free context memory during AER reset and allocate new context memory
during recovery by calling bnxt_hwrm_func_qcaps().  We also need
to call bnxt_reenable_sriov() to restore the VFs.

Fixes: bae361c54fb6 ("bnxt_en: Improve AER slot reset.")
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