]> asedeno.scripts.mit.edu Git - linux.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)
commitec4f5a436bdf0e5453ad15c4f34a59b9b675ff48
treec10705229927a949ff022517e56a90ba89c8b500
parent241c8cf052e7b1ee32e60bd31214afdaaaa28c55
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