summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2020-06-15 02:57:08 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-15 23:28:33 +0300
commit59ae210173ff86256fa0cdba4ea4d608c61e123d (patch)
tree60ad0a1e140c9cb2f1025c121a9dc92e2e7586da /drivers/net
parent2084ccf6259cc95e0575f0fafc93595d0219a9f6 (diff)
downloadlinux-59ae210173ff86256fa0cdba4ea4d608c61e123d.tar.xz
bnxt_en: Re-enable SRIOV during resume.
If VFs are enabled, we need to re-configure them during resume because firmware has been reset while resuming. Otherwise, the VFs won't work after resume. Fixes: c16d4ee0e397 ("bnxt_en: Refactor logic to re-enable SRIOV after firmware reset detected.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 1dc38d9c5252..0d97f471f520 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -12151,6 +12151,8 @@ static int bnxt_resume(struct device *device)
resume_exit:
bnxt_ulp_start(bp, rc);
+ if (!rc)
+ bnxt_reenable_sriov(bp);
rtnl_unlock();
return rc;
}