igb: Enable SR-IOV after reinit
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 22 Nov 2022 09:28:03 +0000 (18:28 +0900)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 16 Mar 2023 15:55:56 +0000 (08:55 -0700)
commit50f303496d92e25b79bdfb73e3707ad0684ad67f
treef38d757f850129e6dec7deccde540b8b29491801
parent65f69851e44d71248b952a687e44759a7abb5016
igb: Enable SR-IOV after reinit

Enabling SR-IOV causes the virtual functions to make requests to the
PF via the mailbox. Notably, E1000_VF_RESET request will happen during
the initialization of the VF. However, unless the reinit is done, the
VMMB interrupt, which delivers mailbox interrupt from VF to PF will be
kept masked and such requests will be silently ignored.

Enable SR-IOV at the very end of the procedure to configure the device
for SR-IOV so that the PF is configured properly for SR-IOV when a VF is
activated.

Fixes: fa44f2f185f7 ("igb: Enable SR-IOV configuration via PCI sysfs interface")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c