summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/pensando
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@amd.com>2024-05-29 02:02:58 +0200
committerJakub Kicinski <kuba@kernel.org>2024-05-31 03:10:35 +0200
commit488da00479d50ec5970b3f84e9fad2c5fda2d78c (patch)
tree798f32b5be9c46a7dc0c04d9cc7c5165fe3874a3 /drivers/net/ethernet/pensando
parentionic: Use netdev_name() function instead of netdev->name (diff)
downloadlinux-488da00479d50ec5970b3f84e9fad2c5fda2d78c.tar.xz
linux-488da00479d50ec5970b3f84e9fad2c5fda2d78c.zip
ionic: only sync frag_len in first buffer of xdp
We don't want to try to sync more length than might be in the first frag of an Rx skb, so make sure to use the frag_len rather than the full len. Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Link: https://lore.kernel.org/r/20240529000259.25775-7-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/pensando')
-rw-r--r--drivers/net/ethernet/pensando/ionic/ionic_txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c
index 14aa3844b699..c3a6c4af52f1 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c
@@ -502,7 +502,7 @@ static bool ionic_run_xdp(struct ionic_rx_stats *stats,
XDP_PACKET_HEADROOM, frag_len, false);
dma_sync_single_range_for_cpu(rxq->dev, ionic_rx_buf_pa(buf_info),
- XDP_PACKET_HEADROOM, len,
+ XDP_PACKET_HEADROOM, frag_len,
DMA_FROM_DEVICE);
prefetchw(&xdp_buf.data_hard_start);