]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc752f4fcec2b1c5de04ff202a77c32138e49cbf6
treeb6c1c64f51e14e8d92e27ae2a1871f4962a7e666
parent7d3486f88be6c481092d3e8491b8e1ce75a50e5c
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