Skip to content

Commit 7639a6e

Browse files
emuslnkuba-moo
authored andcommitted
ionic: rename ionic_xdp_rx_put_bufs
We aren't "putting" buf, we're just unlinking them from our tracking in order to let the XDP_TX and XDP_REDIRECT tx clean paths take care of the pages when they are done with them. This rename clears up the intent. Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: Brett Creeley <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4a0ec34 commit 7639a6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/net/ethernet/pensando/ionic/ionic_txrx.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,9 @@ int ionic_xdp_xmit(struct net_device *netdev, int n,
481481
return nxmit;
482482
}
483483

484-
static void ionic_xdp_rx_put_bufs(struct ionic_queue *q,
485-
struct ionic_buf_info *buf_info,
486-
int nbufs)
484+
static void ionic_xdp_rx_unlink_bufs(struct ionic_queue *q,
485+
struct ionic_buf_info *buf_info,
486+
int nbufs)
487487
{
488488
int i;
489489

@@ -600,7 +600,7 @@ static bool ionic_run_xdp(struct ionic_rx_stats *stats,
600600
netdev_dbg(netdev, "tx ionic_xdp_post_frame err %d\n", err);
601601
goto out_xdp_abort;
602602
}
603-
ionic_xdp_rx_put_bufs(rxq, buf_info, nbufs);
603+
ionic_xdp_rx_unlink_bufs(rxq, buf_info, nbufs);
604604
stats->xdp_tx++;
605605

606606
/* the Tx completion will free the buffers */
@@ -612,7 +612,7 @@ static bool ionic_run_xdp(struct ionic_rx_stats *stats,
612612
netdev_dbg(netdev, "xdp_do_redirect err %d\n", err);
613613
goto out_xdp_abort;
614614
}
615-
ionic_xdp_rx_put_bufs(rxq, buf_info, nbufs);
615+
ionic_xdp_rx_unlink_bufs(rxq, buf_info, nbufs);
616616
rxq->xdp_flush = true;
617617
stats->xdp_redirect++;
618618
break;

0 commit comments

Comments
 (0)