Skip to content

Commit 068f3b3

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
net: cxgb3: Remove stid deadcode
cxgb3_alloc_stid() and cxgb3_free_stid() have been unused since commit 30e0f6c ("RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel") Remove them. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0444596 commit 068f3b3

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -515,23 +515,6 @@ void *cxgb3_free_atid(struct t3cdev *tdev, int atid)
515515

516516
EXPORT_SYMBOL(cxgb3_free_atid);
517517

518-
/*
519-
* Free a server TID and return it to the free pool.
520-
*/
521-
void cxgb3_free_stid(struct t3cdev *tdev, int stid)
522-
{
523-
struct tid_info *t = &(T3C_DATA(tdev))->tid_maps;
524-
union listen_entry *p = stid2entry(t, stid);
525-
526-
spin_lock_bh(&t->stid_lock);
527-
p->next = t->sfree;
528-
t->sfree = p;
529-
t->stids_in_use--;
530-
spin_unlock_bh(&t->stid_lock);
531-
}
532-
533-
EXPORT_SYMBOL(cxgb3_free_stid);
534-
535518
void cxgb3_insert_tid(struct t3cdev *tdev, struct cxgb3_client *client,
536519
void *ctx, unsigned int tid)
537520
{
@@ -671,28 +654,6 @@ int cxgb3_alloc_atid(struct t3cdev *tdev, struct cxgb3_client *client,
671654

672655
EXPORT_SYMBOL(cxgb3_alloc_atid);
673656

674-
int cxgb3_alloc_stid(struct t3cdev *tdev, struct cxgb3_client *client,
675-
void *ctx)
676-
{
677-
int stid = -1;
678-
struct tid_info *t = &(T3C_DATA(tdev))->tid_maps;
679-
680-
spin_lock_bh(&t->stid_lock);
681-
if (t->sfree) {
682-
union listen_entry *p = t->sfree;
683-
684-
stid = (p - t->stid_tab) + t->stid_base;
685-
t->sfree = p->next;
686-
p->t3c_tid.ctx = ctx;
687-
p->t3c_tid.client = client;
688-
t->stids_in_use++;
689-
}
690-
spin_unlock_bh(&t->stid_lock);
691-
return stid;
692-
}
693-
694-
EXPORT_SYMBOL(cxgb3_alloc_stid);
695-
696657
/* Get the t3cdev associated with a net_device */
697658
struct t3cdev *dev2t3cdev(struct net_device *dev)
698659
{

drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ struct cxgb3_client {
9595
*/
9696
int cxgb3_alloc_atid(struct t3cdev *dev, struct cxgb3_client *client,
9797
void *ctx);
98-
int cxgb3_alloc_stid(struct t3cdev *dev, struct cxgb3_client *client,
99-
void *ctx);
10098
void *cxgb3_free_atid(struct t3cdev *dev, int atid);
101-
void cxgb3_free_stid(struct t3cdev *dev, int stid);
10299
void cxgb3_insert_tid(struct t3cdev *dev, struct cxgb3_client *client,
103100
void *ctx, unsigned int tid);
104101
void cxgb3_queue_tid_release(struct t3cdev *dev, unsigned int tid);

0 commit comments

Comments
 (0)