ice: Allow ignoring opcodes on specific VF
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Tue, 2 Mar 2021 18:12:01 +0000 (10:12 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 22 Apr 2021 16:26:22 +0000 (09:26 -0700)
commitc0dcaa55f91d925c9ac2c950ff84138534337a6c
treedb10b8515db030a241ca1c46c56aa0e80836862c
parent0891c89674e8d39eb47310e7c0646c2b07228fe7
ice: Allow ignoring opcodes on specific VF

Declare bitmap of allowed commands on VF. Initialize default
opcodes list that should be always supported. Declare array of
supported opcodes for each caps used in virtchnl code.

Change allowed bitmap by setting or clearing corresponding
bit to allowlist (bit set) or denylist (bit clear).

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/Makefile
drivers/net/ethernet/intel/ice/ice_virtchnl_allowlist.c [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_virtchnl_allowlist.h [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.h
include/linux/avf/virtchnl.h