bianbu-linux-6.6/drivers/net/ethernet/intel
Sylwester Dziedziuch 2980cbd4dc i40e: Fix removing driver while bare-metal VFs pass traffic
Prevent VFs from resetting when PF driver is being unloaded:
- introduce new pf state: __I40E_VF_RESETS_DISABLED;
- check if pf state has __I40E_VF_RESETS_DISABLED state set,
  if so, disable any further VFLR event notifications;
- when i40e_remove (rmmod i40e) is called, disable any resets on
  the VFs;

Previously if there were bare-metal VFs passing traffic and PF
driver was removed, there was a possibility of VFs triggering a Tx
timeout right before iavf_remove. This was causing iavf_close to
not be called because there is a check in the beginning of  iavf_remove
that bails out early if adapter->state < IAVF_DOWN_PENDING. This
makes it so some resources do not get cleaned up.

Fixes: 6a9ddb36ee ("i40e: disable IOV before freeing resources")
Signed-off-by: Slawomir Laba <slawomirx.laba@intel.com>
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20201120180640.3654474-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-23 16:52:59 -08:00
..
e1000 e1000: remove unused and incorrect code 2020-10-13 19:44:01 -07:00
e1000e e1000e: Add support for Meteor Lake 2020-09-28 14:42:46 -07:00
fm10k net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
i40e i40e: Fix removing driver while bare-metal VFs pass traffic 2020-11-23 16:52:59 -08:00
iavf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
ice ice: fix adding IP4 IP6 Flow Director rules 2020-10-09 13:14:19 -07:00
igb net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
igbvf intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
igc igc: Fix returning wrong statistics 2020-11-10 15:03:14 -08:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe net: remove unneeded break 2020-10-20 10:28:21 -07:00
ixgbevf net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
e100.c net: e100: Remove in_interrupt() usage and pointless GFP_ATOMIC allocation 2020-09-29 14:02:54 -07:00
Kconfig ice: implement device flash update via devlink 2020-07-28 17:07:06 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00