]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf4a718810cf73fa55c85d253634d4a1f9464f6e7
treeef4da380057efd67e580f7eb6c558a08250cdbf2
parent3ba9bcb4b68fa63f38bca910ccd4a1bf3cb4195f
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