bnxt_en: Refactor logic to re-enable SRIOV after firmware reset detected.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 2 Feb 2020 07:41:35 +0000 (02:41 -0500)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Feb 2020 23:06:45 +0000 (15:06 -0800)
commitc16d4ee0e397163fe7ceac281eaa952e63fadec7
tree051a12a7c0be348827110c143c3f020b0ecaef79
parent14b41a2959fbaa50932699d32ceefd6643abacc6
bnxt_en: Refactor logic to re-enable SRIOV after firmware reset detected.

Put the current logic in bnxt_open() to re-enable SRIOV after detecting
firmware reset into a new function bnxt_reenable_sriov().  This call
needs to be invoked in the firmware reset path also in the next patch.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c