From: linux@treblig.org
To: bharat@chelsio.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
"Dr. David Alan Gilbert" <linux@treblig.org>
Subject: [PATCH net-next 5/6] cxgb4: Remove unused cxgb4_l2t_alloc_switching
Date: Sun, 13 Oct 2024 21:38:30 +0100 [thread overview]
Message-ID: <20241013203831.88051-6-linux@treblig.org> (raw)
In-Reply-To: <20241013203831.88051-1-linux@treblig.org>
From: "Dr. David Alan Gilbert" <linux@treblig.org>
cxgb4_l2t_alloc_switching() has been unused since it was added in
commit f7502659cec8 ("cxgb4: Add API to alloc l2t entry; also update
existing ones")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
drivers/net/ethernet/chelsio/cxgb4/l2t.c | 19 -------------------
drivers/net/ethernet/chelsio/cxgb4/l2t.h | 2 --
2 files changed, 21 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c
index 1e5f5b1a22a6..c02b4e9c06b2 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c
@@ -608,25 +608,6 @@ struct l2t_entry *t4_l2t_alloc_switching(struct adapter *adap, u16 vlan,
return e;
}
-/**
- * cxgb4_l2t_alloc_switching - Allocates an L2T entry for switch filters
- * @dev: net_device pointer
- * @vlan: VLAN Id
- * @port: Associated port
- * @dmac: Destination MAC address to add to L2T
- * Returns pointer to the allocated l2t entry
- *
- * Allocates an L2T entry for use by switching rule of a filter
- */
-struct l2t_entry *cxgb4_l2t_alloc_switching(struct net_device *dev, u16 vlan,
- u8 port, u8 *dmac)
-{
- struct adapter *adap = netdev2adap(dev);
-
- return t4_l2t_alloc_switching(adap, vlan, port, dmac);
-}
-EXPORT_SYMBOL(cxgb4_l2t_alloc_switching);
-
struct l2t_data *t4_init_l2t(unsigned int l2t_start, unsigned int l2t_end)
{
unsigned int l2t_size;
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.h b/drivers/net/ethernet/chelsio/cxgb4/l2t.h
index 340fecb28a13..8aad7e9dee6d 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/l2t.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.h
@@ -115,8 +115,6 @@ struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh,
unsigned int priority);
u64 cxgb4_select_ntuple(struct net_device *dev,
const struct l2t_entry *l2t);
-struct l2t_entry *cxgb4_l2t_alloc_switching(struct net_device *dev, u16 vlan,
- u8 port, u8 *dmac);
void t4_l2t_update(struct adapter *adap, struct neighbour *neigh);
struct l2t_entry *t4_l2t_alloc_switching(struct adapter *adap, u16 vlan,
u8 port, u8 *dmac);
--
2.47.0
next prev parent reply other threads:[~2024-10-13 20:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-13 20:38 [PATCH net-next 0/6] cxgb4: Deadcode removal linux
2024-10-13 20:38 ` [PATCH net-next 1/6] cxgb4: Remove unused cxgb4_alloc/free_encap_mac_filt linux
2024-10-14 3:35 ` Kalesh Anakkur Purayil
2024-10-13 20:38 ` [PATCH net-next 2/6] cxgb4: Remove unused cxgb4_alloc/free_raw_mac_filt linux
2024-10-14 3:37 ` Kalesh Anakkur Purayil
2024-10-13 20:38 ` [PATCH net-next 3/6] cxgb4: Remove unused cxgb4_get_srq_entry linux
2024-10-14 3:33 ` Kalesh Anakkur Purayil
2024-10-13 20:38 ` [PATCH net-next 4/6] cxgb4: Remove unused cxgb4_scsi_init linux
2024-10-14 3:34 ` Kalesh Anakkur Purayil
2024-10-13 20:38 ` linux [this message]
2024-10-14 3:36 ` [PATCH net-next 5/6] cxgb4: Remove unused cxgb4_l2t_alloc_switching Kalesh Anakkur Purayil
2024-10-13 20:38 ` [PATCH net-next 6/6] cxgb4: Remove unused t4_free_ofld_rxqs linux
2024-10-14 3:31 ` Kalesh Anakkur Purayil
2024-10-14 11:21 ` Dr. David Alan Gilbert
2024-10-16 0:00 ` [PATCH net-next 0/6] cxgb4: Deadcode removal patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241013203831.88051-6-linux@treblig.org \
--to=linux@treblig.org \
--cc=bharat@chelsio.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).