]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iavf: restore MSI state on reset
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 4 Jun 2021 16:53:28 +0000 (09:53 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:15 +0000 (09:49 +0100)
commitb57ead9079c5f649feb52866159ba5171f8e13be
tree9d607b16a65170ffc8de7f8be5824513a600c217
parent74e1cdddc3108a9b982ba7b1855c3e4caa657f6c
iavf: restore MSI state on reset

BugLink: https://bugs.launchpad.net/bugs/1954931
commit 7e4dcc13965c57869684d57a1dc6dd7be589488c upstream.

If the PF experiences an FLR, the VF's MSI and MSI-X configuration will
be conveniently and silently removed in the process. When this happens,
reset recovery will appear to complete normally but no traffic will
pass. The netdev watchdog will helpfully notify everyone of this issue.

To prevent such public embarrassment, restore MSI configuration at every
reset. For normal resets, this will do no harm, but for VF resets
resulting from a PF FLR, this will keep the VF working.

Fixes: 5eae00c57f5e ("i40evf: main driver core")
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/intel/iavf/iavf_main.c