]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Check if VF is disabled for Opcode and other operations
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Wed, 6 Nov 2019 10:05:33 +0000 (02:05 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 8 Nov 2019 20:02:54 +0000 (12:02 -0800)
commitb6c0160fbd162c803b38385da9b5261d72971180
treec10705229927a949ff022517e56a90ba89c8b500
parentabe3a8089d072f6132cad87a76e194b0ded0e222
ice: Check if VF is disabled for Opcode and other operations

This patch adds code to check if PF or VF is disabled before honoring
mailbox message to configure VF - If it is disabled, and opcode is for
resetting VF, the PF driver simply tell VF that all is set. In addition,
if reset is ongoing, and Admin intend to configure VF on the host, we can
poll the VF enabling bit to make sure it is ready before continue - If
after ~250 milliseconds, VF is not in active state, we can bail out with
invalid error.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h