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)
commit53d0b3ae2590bbd15620ce905c05320ed9cfed1a
tree4933d7184f4cfec86a2fd21f17a15794f1253a7e
parentd4f82fd36836f6c90771cd0ceb4dfe191569e2c6
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