i40e: Remove unused i40e_dcb_hw_get_num_tc
The last useof i40e_dcb_hw_get_num_tc() was removed in 2022 by
commit fe20371578ef ("Revert "i40e: Fix reset bw limit when DCB enabled
with 1 TC"")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250102173717.200359-10-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
d424b93f35
commit
47ea5d4e6f
@ -1490,19 +1490,6 @@ void i40e_dcb_hw_set_num_tc(struct i40e_hw *hw, u8 num_tc)
|
||||
wr32(hw, I40E_PRTDCB_GENC, reg);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_dcb_hw_get_num_tc
|
||||
* @hw: pointer to the hw struct
|
||||
*
|
||||
* Returns number of traffic classes configured in HW
|
||||
**/
|
||||
u8 i40e_dcb_hw_get_num_tc(struct i40e_hw *hw)
|
||||
{
|
||||
u32 reg = rd32(hw, I40E_PRTDCB_GENC);
|
||||
|
||||
return FIELD_GET(I40E_PRTDCB_GENC_NUMTC_MASK, reg);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_dcb_hw_rx_ets_bw_config
|
||||
* @hw: pointer to the hw struct
|
||||
|
||||
@ -253,7 +253,6 @@ void i40e_dcb_hw_rx_cmd_monitor_config(struct i40e_hw *hw,
|
||||
void i40e_dcb_hw_pfc_config(struct i40e_hw *hw,
|
||||
u8 pfc_en, u8 *prio_tc);
|
||||
void i40e_dcb_hw_set_num_tc(struct i40e_hw *hw, u8 num_tc);
|
||||
u8 i40e_dcb_hw_get_num_tc(struct i40e_hw *hw);
|
||||
void i40e_dcb_hw_rx_ets_bw_config(struct i40e_hw *hw, u8 *bw_share,
|
||||
u8 *mode, u8 *prio_type);
|
||||
void i40e_dcb_hw_rx_up2tc_config(struct i40e_hw *hw, u8 *prio_tc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user