mirror of
https://github.com/torvalds/linux.git
synced 2026-10-12 21:31:03 +02:00
cxgb4: Remove unused cxgb4_alloc/free_encap_mac_filt
cxgb4_alloc_encap_mac_filt() and cxgb4_free_encap_mac_filt() have been
unused since
commit 28b3870578 ("cxgb4: Re-work the logic for mps refcounting")
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20241013203831.88051-2-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
6d858708d4
commit
65950f275f
|
|
@ -2141,12 +2141,6 @@ int cxgb4_free_mac_filt(struct adapter *adap, unsigned int viid,
|
|||
unsigned int naddr, const u8 **addr, bool sleep_ok);
|
||||
int cxgb4_init_mps_ref_entries(struct adapter *adap);
|
||||
void cxgb4_free_mps_ref_entries(struct adapter *adap);
|
||||
int cxgb4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid,
|
||||
const u8 *addr, const u8 *mask,
|
||||
unsigned int vni, unsigned int vni_mask,
|
||||
u8 dip_hit, u8 lookup_type, bool sleep_ok);
|
||||
int cxgb4_free_encap_mac_filt(struct adapter *adap, unsigned int viid,
|
||||
int idx, bool sleep_ok);
|
||||
int cxgb4_free_raw_mac_filt(struct adapter *adap,
|
||||
unsigned int viid,
|
||||
const u8 *addr,
|
||||
|
|
|
|||
|
|
@ -187,36 +187,6 @@ int cxgb4_alloc_raw_mac_filt(struct adapter *adap,
|
|||
return ret;
|
||||
}
|
||||
|
||||
int cxgb4_free_encap_mac_filt(struct adapter *adap, unsigned int viid,
|
||||
int idx, bool sleep_ok)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if (!cxgb4_mps_ref_dec(adap, idx))
|
||||
ret = t4_free_encap_mac_filt(adap, viid, idx, sleep_ok);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int cxgb4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid,
|
||||
const u8 *addr, const u8 *mask,
|
||||
unsigned int vni, unsigned int vni_mask,
|
||||
u8 dip_hit, u8 lookup_type, bool sleep_ok)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = t4_alloc_encap_mac_filt(adap, viid, addr, mask, vni, vni_mask,
|
||||
dip_hit, lookup_type, sleep_ok);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (cxgb4_mps_ref_inc(adap, addr, ret, mask)) {
|
||||
ret = -ENOMEM;
|
||||
t4_free_encap_mac_filt(adap, viid, ret, sleep_ok);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int cxgb4_init_mps_ref_entries(struct adapter *adap)
|
||||
{
|
||||
spin_lock_init(&adap->mps_ref_lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user