Skip to content

Commit d4181c4

Browse files
committed
i40e: Remove unused i40e_dcb_hw_get_num_tc
JIRA: https://issues.redhat.com/browse/RHEL-83573 commit 47ea5d4 Author: Dr. David Alan Gilbert <linux@treblig.org> Date: Thu Jan 2 17:37:17 2025 +0000 i40e: Remove unused i40e_dcb_hw_get_num_tc The last useof i40e_dcb_hw_get_num_tc() was removed in 2022 by commit fe20371 ("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> Signed-off-by: Dennis Chen <dechen@redhat.com>
1 parent e1f2b47 commit d4181c4

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/net/ethernet/intel/i40e/i40e_dcb.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,19 +1490,6 @@ void i40e_dcb_hw_set_num_tc(struct i40e_hw *hw, u8 num_tc)
14901490
wr32(hw, I40E_PRTDCB_GENC, reg);
14911491
}
14921492

1493-
/**
1494-
* i40e_dcb_hw_get_num_tc
1495-
* @hw: pointer to the hw struct
1496-
*
1497-
* Returns number of traffic classes configured in HW
1498-
**/
1499-
u8 i40e_dcb_hw_get_num_tc(struct i40e_hw *hw)
1500-
{
1501-
u32 reg = rd32(hw, I40E_PRTDCB_GENC);
1502-
1503-
return FIELD_GET(I40E_PRTDCB_GENC_NUMTC_MASK, reg);
1504-
}
1505-
15061493
/**
15071494
* i40e_dcb_hw_rx_ets_bw_config
15081495
* @hw: pointer to the hw struct

drivers/net/ethernet/intel/i40e/i40e_dcb.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ void i40e_dcb_hw_rx_cmd_monitor_config(struct i40e_hw *hw,
253253
void i40e_dcb_hw_pfc_config(struct i40e_hw *hw,
254254
u8 pfc_en, u8 *prio_tc);
255255
void i40e_dcb_hw_set_num_tc(struct i40e_hw *hw, u8 num_tc);
256-
u8 i40e_dcb_hw_get_num_tc(struct i40e_hw *hw);
257256
void i40e_dcb_hw_rx_ets_bw_config(struct i40e_hw *hw, u8 *bw_share,
258257
u8 *mode, u8 *prio_type);
259258
void i40e_dcb_hw_rx_up2tc_config(struct i40e_hw *hw, u8 *prio_tc);

0 commit comments

Comments
 (0)