]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc111f1c1483472669f42d556c4c8af4c2b33a8c5
treedb10b8515db030a241ca1c46c56aa0e80836862c
parent9baa74f31d6d7a980b9936d93fe9f3394f8058fe
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