]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: refactor shutdown code
authorMitch A Williams <mitch.a.williams@intel.com>
Tue, 9 Dec 2014 08:53:04 +0000 (08:53 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Jan 2015 19:47:42 +0000 (11:47 -0800)
commitb231f93b8a6b5e76a4fd86c979159333610e9d5d
tree4933d7184f4cfec86a2fd21f17a15794f1253a7e
parentf3ab549ea33a662138380cfae4227fe00a74bb27
i40evf: refactor shutdown code

If the VF driver is running in the host, the shutdown code is completely
broken. We cannot wait in our down routine for the PF to respond to our
requests, as its admin queue task will never run while we hold the lock.

Instead, we schedule operations, then let the watchdog take care of
shutting things down. If the driver is being removed, then wait in the
remove routine until the watchdog is done before continuing.

Change-ID: I93a58d17389e8d6b58f21e430b56ed7b4590b2c5
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c