]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: don't handle VF reset on unload
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 13 Feb 2014 11:48:48 +0000 (03:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 22:27:29 +0000 (17:27 -0500)
commitba916574cd4737e37a5b1bc59ee54db2e1538fe6
tree387687e606bbab8080939ef294c0f1a26beee3e9
parentdc14e39940b2ae1d0e2f2a6560d0b530032c77c5
i40e: don't handle VF reset on unload

Set the DOWN flag before attempting to disable VFs when unloading the
driver. Also, don't attempt to reset the VFs when the driver is
unloading, because the switch configuration will fail. This fixes a
panic on unload when VFs are enabled.

Change-ID: I25a6567e89c9687145f510ff4f630932412c5c5d
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>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c