]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
cxgb4: Remove unused t4_free_ofld_rxqs
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 13 Oct 2024 20:38:31 +0000 (21:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 23:46:28 +0000 (16:46 -0700)
t4_free_ofld_rxqs() has been unused since
commit 0fbc81b3ad51 ("chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources
dynamically for all cxgb4 ULD's")

Remove it.

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-7-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/sge.c

index 1c302dfd65036f313300310785f8b60ac1da5a3f..75bd69ff61a8754d386adfa2eff880f37691a343 100644 (file)
@@ -1608,7 +1608,6 @@ void t4_os_portmod_changed(struct adapter *adap, int port_id);
 void t4_os_link_changed(struct adapter *adap, int port_id, int link_stat);
 
 void t4_free_sge_resources(struct adapter *adap);
-void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q);
 irq_handler_t t4_intr_handler(struct adapter *adap);
 netdev_tx_t t4_start_xmit(struct sk_buff *skb, struct net_device *dev);
 int cxgb4_selftest_lb_pkt(struct net_device *netdev);
index de52bcb884c417098ff5aff6aea77753d055c671..a7d76a8ed050203a619d38026062b70c49e03150 100644 (file)
@@ -4874,22 +4874,6 @@ void free_rspq_fl(struct adapter *adap, struct sge_rspq *rq,
        }
 }
 
-/**
- *      t4_free_ofld_rxqs - free a block of consecutive Rx queues
- *      @adap: the adapter
- *      @n: number of queues
- *      @q: pointer to first queue
- *
- *      Release the resources of a consecutive block of offload Rx queues.
- */
-void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q)
-{
-       for ( ; n; n--, q++)
-               if (q->rspq.desc)
-                       free_rspq_fl(adap, &q->rspq,
-                                    q->fl.size ? &q->fl : NULL);
-}
-
 void t4_sge_free_ethofld_txq(struct adapter *adap, struct sge_eohw_txq *txq)
 {
        if (txq->q.desc) {