]> 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)
commit823dac5666500150cad5ec731a7ff66239fbed3c
treec10705229927a949ff022517e56a90ba89c8b500
parenta509b095f08e3b861e027208ed65905e95f9b2f0
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