i40e/base: add Tx scheduling related AQ commands
This patch adds support for AQ commands related to Tx scheduling. Signed-off-by: Jingjing Wu <jingjing.wu@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com> Tested-by: Huilong Xu <huilongx.xu@intel.com>
This commit is contained in:
parent
305f81dbd7
commit
7df22f55cc
@ -4468,6 +4468,40 @@ enum i40e_status_code i40e_aq_config_vsi_tc_bw(struct i40e_hw *hw,
|
||||
cmd_details);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_aq_config_switch_comp_ets - Enable/Disable/Modify ETS on the port
|
||||
* @hw: pointer to the hw struct
|
||||
* @seid: seid of the switching component connected to Physical Port
|
||||
* @ets_data: Buffer holding ETS parameters
|
||||
* @cmd_details: pointer to command details structure or NULL
|
||||
**/
|
||||
enum i40e_status_code i40e_aq_config_switch_comp_ets(struct i40e_hw *hw,
|
||||
u16 seid,
|
||||
struct i40e_aqc_configure_switching_comp_ets_data *ets_data,
|
||||
enum i40e_admin_queue_opc opcode,
|
||||
struct i40e_asq_cmd_details *cmd_details)
|
||||
{
|
||||
return i40e_aq_tx_sched_cmd(hw, seid, (void *)ets_data,
|
||||
sizeof(*ets_data), opcode, cmd_details);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_aq_config_switch_comp_bw_config - Config Switch comp BW Alloc per TC
|
||||
* @hw: pointer to the hw struct
|
||||
* @seid: seid of the switching component
|
||||
* @bw_data: Buffer holding enabled TCs, relative/absolute TC BW limit/credits
|
||||
* @cmd_details: pointer to command details structure or NULL
|
||||
**/
|
||||
enum i40e_status_code i40e_aq_config_switch_comp_bw_config(struct i40e_hw *hw,
|
||||
u16 seid,
|
||||
struct i40e_aqc_configure_switching_comp_bw_config_data *bw_data,
|
||||
struct i40e_asq_cmd_details *cmd_details)
|
||||
{
|
||||
return i40e_aq_tx_sched_cmd(hw, seid, (void *)bw_data, sizeof(*bw_data),
|
||||
i40e_aqc_opc_configure_switching_comp_bw_config,
|
||||
cmd_details);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_aq_config_switch_comp_ets_bw_limit - Config Switch comp BW Limit per TC
|
||||
* @hw: pointer to the hw struct
|
||||
|
@ -326,6 +326,15 @@ enum i40e_status_code i40e_aq_config_switch_comp_bw_limit(struct i40e_hw *hw,
|
||||
enum i40e_status_code i40e_aq_config_vsi_tc_bw(struct i40e_hw *hw, u16 seid,
|
||||
struct i40e_aqc_configure_vsi_tc_bw_data *bw_data,
|
||||
struct i40e_asq_cmd_details *cmd_details);
|
||||
enum i40e_status_code i40e_aq_config_switch_comp_ets(struct i40e_hw *hw,
|
||||
u16 seid,
|
||||
struct i40e_aqc_configure_switching_comp_ets_data *ets_data,
|
||||
enum i40e_admin_queue_opc opcode,
|
||||
struct i40e_asq_cmd_details *cmd_details);
|
||||
enum i40e_status_code i40e_aq_config_switch_comp_bw_config(struct i40e_hw *hw,
|
||||
u16 seid,
|
||||
struct i40e_aqc_configure_switching_comp_bw_config_data *bw_data,
|
||||
struct i40e_asq_cmd_details *cmd_details);
|
||||
enum i40e_status_code i40e_aq_query_vsi_bw_config(struct i40e_hw *hw,
|
||||
u16 seid,
|
||||
struct i40e_aqc_query_vsi_bw_config_resp *bw_data,
|
||||
|
Loading…
Reference in New Issue
Block a user