]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: reset on module unload
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 9 Jan 2015 11:18:16 +0000 (11:18 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Feb 2015 04:32:57 +0000 (20:32 -0800)
commit90b23ce44dd64bc603599df55d47d65910f9f984
treeef4da380057efd67e580f7eb6c558a08250cdbf2
parent445c07b3903ebe10a64fc2e2798d01b842fbf504
i40evf: reset on module unload

When the module is being unloaded, don't wait for the PF to politely
handle all of our admin queue requests, as that might take forever with
a lot of VFs enabled. Instead, just stop everything and request a VF
reset.

When the original shutdown code was written, VF resets were unreliable,
so we avoided them. But with production hardware and firmware, and the
1.x PF driver, this is no longer the case.

This fixes a potential multi-minute delay on driver unload, VF disable,
or system shutdown.

Change-ID: Ib43d6d860ef6b9b8f26e8dce0615a0302608c7d9
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c