Skip to content

Commit 5c0b3bb

Browse files
committed
i40e: Remove unused i40e_get_cur_guaranteed_fd_count
JIRA: https://issues.redhat.com/browse/RHEL-83569 commit 3eb24a9 Author: Dr. David Alan Gilbert <linux@treblig.org> Date: Thu Jan 2 17:37:13 2025 +0000 i40e: Remove unused i40e_get_cur_guaranteed_fd_count The last use of i40e_get_cur_guaranteed_fd_count() was removed in 2015 by commit 04294e3 ("i40e: FD filters flush policy changes") 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-6-linux@treblig.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Dennis Chen <dechen@redhat.com>
1 parent 1103969 commit 5c0b3bb

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,6 @@ int i40e_add_del_fdir(struct i40e_vsi *vsi,
11911191
struct i40e_fdir_filter *input, bool add);
11921192
void i40e_fdir_check_and_reenable(struct i40e_pf *pf);
11931193
u32 i40e_get_current_fd_count(struct i40e_pf *pf);
1194-
u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf);
11951194
u32 i40e_get_current_atr_cnt(struct i40e_pf *pf);
11961195
u32 i40e_get_global_fd_count(struct i40e_pf *pf);
11971196
bool i40e_set_ntuple(struct i40e_pf *pf, netdev_features_t features);

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9628,19 +9628,6 @@ static void i40e_handle_lan_overflow_event(struct i40e_pf *pf,
96289628
i40e_reset_vf(vf, false);
96299629
}
96309630

9631-
/**
9632-
* i40e_get_cur_guaranteed_fd_count - Get the consumed guaranteed FD filters
9633-
* @pf: board private structure
9634-
**/
9635-
u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf)
9636-
{
9637-
u32 val, fcnt_prog;
9638-
9639-
val = rd32(&pf->hw, I40E_PFQF_FDSTAT);
9640-
fcnt_prog = (val & I40E_PFQF_FDSTAT_GUARANT_CNT_MASK);
9641-
return fcnt_prog;
9642-
}
9643-
96449631
/**
96459632
* i40e_get_current_fd_count - Get total FD filters programmed for this PF
96469633
* @pf: board private structure

0 commit comments

Comments
 (0)