ice: virtchnl rss hena support
authorMd Fahad Iqbal Polash <md.fahad.iqbal.polash@intel.com>
Thu, 10 Nov 2022 13:03:53 +0000 (14:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2022 10:44:38 +0000 (10:44 +0000)
commite384cf35bf0c83284eb37785d21d39bbe2568adf
tree689e976922e960209e513f6a973d74ded3b66134
parentab00af85d2f886a8e4ace1342d9cc2b232eab6a8
ice: virtchnl rss hena support

Add support for 2 virtchnl msgs:
VIRTCHNL_OP_SET_RSS_HENA
VIRTCHNL_OP_GET_RSS_HENA_CAPS

The first one allows VFs to clear all previously programmed
RSS configuration and customize it. The second one returns
the RSS HENA bits allowed by the hardware.

Introduce ice_err_to_virt_err which converts kernel
specific errors to virtchnl errors.

Signed-off-by: Md Fahad Iqbal Polash <md.fahad.iqbal.polash@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/ice_vf_lib.c
drivers/net/ethernet/intel/ice/ice_vf_lib_private.h
drivers/net/ethernet/intel/ice/ice_virtchnl.c
drivers/net/ethernet/intel/ice/ice_virtchnl.h