Skip to content

Commit 7392975

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
cxgb4: Remove unused t4_free_ofld_rxqs
t4_free_ofld_rxqs() has been unused since commit 0fbc81b ("chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's") Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 625bb8a commit 7392975

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,6 @@ void t4_os_portmod_changed(struct adapter *adap, int port_id);
16081608
void t4_os_link_changed(struct adapter *adap, int port_id, int link_stat);
16091609

16101610
void t4_free_sge_resources(struct adapter *adap);
1611-
void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q);
16121611
irq_handler_t t4_intr_handler(struct adapter *adap);
16131612
netdev_tx_t t4_start_xmit(struct sk_buff *skb, struct net_device *dev);
16141613
int cxgb4_selftest_lb_pkt(struct net_device *netdev);

drivers/net/ethernet/chelsio/cxgb4/sge.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4874,22 +4874,6 @@ void free_rspq_fl(struct adapter *adap, struct sge_rspq *rq,
48744874
}
48754875
}
48764876

4877-
/**
4878-
* t4_free_ofld_rxqs - free a block of consecutive Rx queues
4879-
* @adap: the adapter
4880-
* @n: number of queues
4881-
* @q: pointer to first queue
4882-
*
4883-
* Release the resources of a consecutive block of offload Rx queues.
4884-
*/
4885-
void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q)
4886-
{
4887-
for ( ; n; n--, q++)
4888-
if (q->rspq.desc)
4889-
free_rspq_fl(adap, &q->rspq,
4890-
q->fl.size ? &q->fl : NULL);
4891-
}
4892-
48934877
void t4_sge_free_ethofld_txq(struct adapter *adap, struct sge_eohw_txq *txq)
48944878
{
48954879
if (txq->q.desc) {

0 commit comments

Comments
 (0)