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>
This commit is contained in:
committed by
Jakub Kicinski
parent
fc53d46524
commit
488da00479
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user