[Intel-wired-lan] [PATCH] igb: Enable SR-IOV after reinit
Szlosek, Marek
marek.szlosek at intel.com
Wed Mar 8 14:42:28 UTC 2023
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Akihiko Odaki
> Sent: wtorek, 22 listopada 2022 10:28
> Cc: netdev at vger.kernel.org; linux-kernel at vger.kernel.org; Yuri Benditovich
> <yuri.benditovich at daynix.com>; Eric Dumazet <edumazet at google.com>;
> Jakub Kicinski <kuba at kernel.org>; Yan Vugenfirer <yan at daynix.com>; intel-
> wired-lan at lists.osuosl.org; Paolo Abeni <pabeni at redhat.com>; David S.
> Miller <davem at davemloft.net>
> Subject: [Intel-wired-lan] [PATCH] 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 at daynix.com>
> ---
> drivers/net/ethernet/intel/igb/igb_main.c | 135 ++++++++++------------
> 1 file changed, 58 insertions(+), 77 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/igb/igb_main.c
> b/drivers/net/ethernet/intel/igb/igb_main.c
> index cfe6bf6e2336..74694a27e35d 100644
> --- a/drivers/net/ethernet/intel/igb/igb_main.c
> +++ b/drivers/net/ethernet/intel/igb/igb_main.c
Tested-by: Marek Szlosek <marek.szlosek at intel.com>
More information about the Intel-wired-lan
mailing list