]> git.baikalelectronics.ru Git - 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)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 1 Dec 2021 21:46:14 +0000 (13:46 -0800)
commit497d6138f84d49274e8713db8a482e201e9be632
treef13fa8bfc06fd72095700ad9bf91e0818a65f9d1
parent95030dbd0aae136dadf65ee86dede302a4f96168
iavf: restore MSI state on reset

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: 16d6e2c362ef ("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>
drivers/net/ethernet/intel/iavf/iavf_main.c