linux_dsm_epyc7002/drivers/net/ethernet/intel
Mitch Williams ef8693eb90 i40evf: refactor reset handling
Respond better to a VF reset event. When a reset is signaled by the
PF, or detected by the watchdog task, prevent the watchdog from
processing admin queue requests, and schedule the reset task.

In the reset task, wait first for the reset to start, then for it to
complete, then reinit the driver.

If the reset never appears to complete after a long, long time (>10
seconds is possible depending on what's going on with the PF driver),
then set a flag to indicate that PF communications have failed.

If this flag is set, check for the reset to complete in the watchdog,
and  attempt to do a full reinitialization of the driver from scratch.

With these changes the VF driver correctly handles a PF reset event
while running on bare metal, or in a VM.

Also update copyrights.

Change-ID: I93513efd0b50523a8345e7f6a33a5e4f8a2a5996
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-02-13 17:27:30 -05:00
..
e1000 drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
e1000e Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-01-18 00:55:41 -08:00
i40e i40e: don't handle VF reset on unload 2014-02-13 17:27:29 -05:00
i40evf i40evf: refactor reset handling 2014-02-13 17:27:30 -05:00
igb Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-12-18 16:42:06 -05:00
igbvf net: igbvf: slight optimization of addr compare 2013-12-31 16:48:31 -05:00
ixgb drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
ixgbe ixgbe: bump version number 2014-01-17 18:56:59 -08:00
ixgbevf ixgbevf: merge ixgbevf_tx_map and ixgbevf_tx_queue into a single function 2014-01-17 19:15:10 -08:00
e100.c e100: Fix "disabling already-disabled device" warning 2014-01-30 16:46:14 -08:00
Kconfig i40e: add DCB option to Kconfig 2014-01-17 19:13:04 -08:00
Makefile i40evf: add driver to kernel build system 2013-12-31 16:27:49 -08:00