OpenCloudOS-Kernel/drivers/net/ethernet/intel
Jesse Brandeburg 8ddb332689 i40e/i40evf: avoid mutex re-init
If the driver were to happen to have a mutex held while
the i40e_init_adminq call was called, the init_adminq might
inadvertently call mutex_init on a lock that was held
which is a violation of the calling semantics.

Fix this by avoiding adminq.c code allocating/freeing this memory, and
then do the same work only once in probe/remove.

Testing Hints (Required if no HSD): for VF, load i40evf in bare metal
and echo 32 > sriov_numvfs; echo 0 > sriov_numvfs in a loop.  Yes this
is a horrible thing to do.

Change-ID: Ida263c51b34e195252179e7e5e400d73a99be7a2
Reported-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-12-03 13:43:06 -08:00
..
e1000 drivers/net/intel: use napi_complete_done() 2015-10-16 04:33:46 -07:00
e1000e drivers/net/intel: use napi_complete_done() 2015-10-16 04:33:46 -07:00
fm10k fm10k: fix memory leak 2015-11-18 14:58:03 -05:00
i40e i40e/i40evf: avoid mutex re-init 2015-12-03 13:43:06 -08:00
i40evf i40e/i40evf: avoid mutex re-init 2015-12-03 13:43:06 -08:00
igb drivers/net/intel: use napi_complete_done() 2015-10-16 04:33:46 -07:00
igbvf drivers/net/intel: use napi_complete_done() 2015-10-16 04:33:46 -07:00
ixgb drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
ixgbe ixgbe: Reset interface after enabling SR-IOV 2015-12-03 12:41:48 -08:00
ixgbevf ixgbe, ixgbevf: Add new mbox API xcast mode 2015-10-23 05:52:26 -07:00
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00
e100.c e100: Release skb when DMA mapping is failed in e100_xmit_prepare 2015-08-18 14:06:05 -07:00