diff options
| author | Md Fahad Iqbal Polash <[email protected]> | 2022-11-10 13:03:53 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-11-14 10:44:38 +0000 |
| commit | e384cf35bf0c83284eb37785d21d39bbe2568adf (patch) | |
| tree | 689e976922e960209e513f6a973d74ded3b66134 /drivers/net/ethernet/intel/ice/ice_virtchnl.h | |
| parent | net: tun: rebuild error handling in tun_get_user (diff) | |
| download | kernel-e384cf35bf0c83284eb37785d21d39bbe2568adf.tar.gz kernel-e384cf35bf0c83284eb37785d21d39bbe2568adf.zip | |
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 <[email protected]>
Signed-off-by: Wojciech Drewek <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_virtchnl.h')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_virtchnl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl.h b/drivers/net/ethernet/intel/ice/ice_virtchnl.h index 4867a92ebefb..b454654d7b0c 100644 --- a/drivers/net/ethernet/intel/ice/ice_virtchnl.h +++ b/drivers/net/ethernet/intel/ice/ice_virtchnl.h @@ -37,6 +37,8 @@ struct ice_virtchnl_ops { int (*add_vlan_msg)(struct ice_vf *vf, u8 *msg); int (*remove_vlan_msg)(struct ice_vf *vf, u8 *msg); int (*query_rxdid)(struct ice_vf *vf); + int (*get_rss_hena)(struct ice_vf *vf); + int (*set_rss_hena_msg)(struct ice_vf *vf, u8 *msg); int (*ena_vlan_stripping)(struct ice_vf *vf); int (*dis_vlan_stripping)(struct ice_vf *vf); int (*handle_rss_cfg_msg)(struct ice_vf *vf, u8 *msg, bool add); |
