mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 13:23:35 -04:00
i40e: Remove unused i40e_del_filter
The last use of i40e_del_filter() was removed in 2016 by
commit 9569a9a454 ("i40e: when adding or removing MAC filters, correctly
handle VLANs")
Remove it.
Fix up a comment that referenced it.
Note: The __ version of this function is still used.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250102173717.200359-7-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
3eb24a9e0a
commit
38dfb07d9a
@@ -1196,7 +1196,6 @@ void i40e_set_ethtool_ops(struct net_device *netdev);
|
||||
struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
|
||||
const u8 *macaddr, s16 vlan);
|
||||
void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f);
|
||||
void i40e_del_filter(struct i40e_vsi *vsi, const u8 *macaddr, s16 vlan);
|
||||
int i40e_sync_vsi_filters(struct i40e_vsi *vsi);
|
||||
struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
|
||||
u16 uplink, u32 param1);
|
||||
|
||||
@@ -1666,9 +1666,8 @@ struct i40e_mac_filter *i40e_add_filter(struct i40e_vsi *vsi,
|
||||
* @vsi: VSI to remove from
|
||||
* @f: the filter to remove from the list
|
||||
*
|
||||
* This function should be called instead of i40e_del_filter only if you know
|
||||
* the exact filter you will remove already, such as via i40e_find_filter or
|
||||
* i40e_find_mac.
|
||||
* This function requires you've found * the exact filter you will remove
|
||||
* already, such as via i40e_find_filter or i40e_find_mac.
|
||||
*
|
||||
* NOTE: This function is expected to be called with mac_filter_hash_lock
|
||||
* being held.
|
||||
@@ -1697,29 +1696,6 @@ void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f)
|
||||
set_bit(__I40E_MACVLAN_SYNC_PENDING, vsi->back->state);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_del_filter - Remove a MAC/VLAN filter from the VSI
|
||||
* @vsi: the VSI to be searched
|
||||
* @macaddr: the MAC address
|
||||
* @vlan: the VLAN
|
||||
*
|
||||
* NOTE: This function is expected to be called with mac_filter_hash_lock
|
||||
* being held.
|
||||
* ANOTHER NOTE: This function MUST be called from within the context of
|
||||
* the "safe" variants of any list iterators, e.g. list_for_each_entry_safe()
|
||||
* instead of list_for_each_entry().
|
||||
**/
|
||||
void i40e_del_filter(struct i40e_vsi *vsi, const u8 *macaddr, s16 vlan)
|
||||
{
|
||||
struct i40e_mac_filter *f;
|
||||
|
||||
if (!vsi || !macaddr)
|
||||
return;
|
||||
|
||||
f = i40e_find_filter(vsi, macaddr, vlan);
|
||||
__i40e_del_filter(vsi, f);
|
||||
}
|
||||
|
||||
/**
|
||||
* i40e_add_mac_filter - Add a MAC filter for all active VLANs
|
||||
* @vsi: the VSI to be searched
|
||||
|
||||
Reference in New Issue
Block a user