]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cxgb3/l2t: Remove unused t3_l2t_send_event
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 9 Jun 2025 15:23:30 +0000 (16:23 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jun 2025 21:42:24 +0000 (14:42 -0700)
The last use of t3_l2t_send_event() was removed in 2019 by
commit 30e0f6cf5acb ("RDMA/iw_cxgb3: Remove the iw_cxgb3 module from
kernel")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20250609152330.24027-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb3/l2t.c
drivers/net/ethernet/chelsio/cxgb3/l2t.h

index 9749d1239f58e121aed71e9360913612dd293669..5d5f3380ecca8407c9eba2e3f2b7e60e25f540e6 100644 (file)
@@ -176,43 +176,6 @@ again:
 
 EXPORT_SYMBOL(t3_l2t_send_slow);
 
-void t3_l2t_send_event(struct t3cdev *dev, struct l2t_entry *e)
-{
-again:
-       switch (e->state) {
-       case L2T_STATE_STALE:   /* entry is stale, kick off revalidation */
-               neigh_event_send(e->neigh, NULL);
-               spin_lock_bh(&e->lock);
-               if (e->state == L2T_STATE_STALE) {
-                       e->state = L2T_STATE_VALID;
-               }
-               spin_unlock_bh(&e->lock);
-               return;
-       case L2T_STATE_VALID:   /* fast-path, send the packet on */
-               return;
-       case L2T_STATE_RESOLVING:
-               spin_lock_bh(&e->lock);
-               if (e->state != L2T_STATE_RESOLVING) {
-                       /* ARP already completed */
-                       spin_unlock_bh(&e->lock);
-                       goto again;
-               }
-               spin_unlock_bh(&e->lock);
-
-               /*
-                * Only the first packet added to the arpq should kick off
-                * resolution.  However, because the alloc_skb below can fail,
-                * we allow each packet added to the arpq to retry resolution
-                * as a way of recovering from transient memory exhaustion.
-                * A better way would be to use a work request to retry L2T
-                * entries when there's no memory.
-                */
-               neigh_event_send(e->neigh, NULL);
-       }
-}
-
-EXPORT_SYMBOL(t3_l2t_send_event);
-
 /*
  * Allocate a free L2T entry.  Must be called with l2t_data.lock held.
  */
index 646ca0bc25bd013a06d1a997f2e12409886d67c8..33558f177497ebeb80181e6d5124f90d5b1fba92 100644 (file)
@@ -113,7 +113,6 @@ struct l2t_entry *t3_l2t_get(struct t3cdev *cdev, struct dst_entry *dst,
                             struct net_device *dev, const void *daddr);
 int t3_l2t_send_slow(struct t3cdev *dev, struct sk_buff *skb,
                     struct l2t_entry *e);
-void t3_l2t_send_event(struct t3cdev *dev, struct l2t_entry *e);
 struct l2t_data *t3_init_l2t(unsigned int l2t_capacity);
 
 int cxgb3_ofld_send(struct t3cdev *dev, struct sk_buff *skb);