i40e: Protect access to VF control methods
authorJan Sokolowski <jan.sokolowski@intel.com>
Tue, 30 Oct 2018 17:50:45 +0000 (10:50 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Nov 2018 18:56:33 +0000 (10:56 -0800)
commitf5a7b21b243952d4d26a2c91a041d122c0306504
treeb6c1c64f51e14e8d92e27ae2a1871f4962a7e666
parent4ff2d8540321324e04c1306f85d4fe68a0c2d0ae
i40e: Protect access to VF control methods

A scenario has been found in which simultaneous
addition/removal and modification of VF's might cause
unstable behaviour, up to and including kernel panics.

Protect the methods that create/modify/destroy VF's
by locking them behind an atomically set bit in PF status
bitfield.

Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c