ice: Add infrastructure for mqprio support via ndo_setup_tc
Add infrastructure required for "ndo_setup_tc:qdisc_mqprio". ice_vsi_setup is modified to configure traffic classes based on mqprio data received from the stack. This includes low-level functions to configure min, max rate-limit parameters in hardware for traffic classes. Each traffic class gets mapped to a hardware channel (VSI) which can be individually configured with different bandwidth parameters. Co-developed-by: Tarun Singh <tarun.k.singh@intel.com> Signed-off-by: Tarun Singh <tarun.k.singh@intel.com> Signed-off-by: Kiran Patil <kiran.patil@intel.com> Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com> Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com> Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
@@ -51,13 +51,18 @@ void ice_cfg_sw_lldp(struct ice_vsi *vsi, bool tx, bool create);
|
||||
|
||||
int ice_set_link(struct ice_vsi *vsi, bool ena);
|
||||
|
||||
#ifdef CONFIG_DCB
|
||||
void ice_vsi_delete(struct ice_vsi *vsi);
|
||||
int ice_vsi_clear(struct ice_vsi *vsi);
|
||||
|
||||
int ice_vsi_cfg_tc(struct ice_vsi *vsi, u8 ena_tc);
|
||||
#endif /* CONFIG_DCB */
|
||||
|
||||
int ice_vsi_cfg_rss_lut_key(struct ice_vsi *vsi);
|
||||
|
||||
void ice_vsi_cfg_netdev_tc(struct ice_vsi *vsi, u8 ena_tc);
|
||||
|
||||
struct ice_vsi *
|
||||
ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi,
|
||||
enum ice_vsi_type vsi_type, u16 vf_id);
|
||||
enum ice_vsi_type vsi_type, u16 vf_id, struct ice_channel *ch);
|
||||
|
||||
void ice_napi_del(struct ice_vsi *vsi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user