diff options
| author | Alexander Lobakin <[email protected]> | 2024-05-07 11:20:26 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2024-05-08 06:51:20 +0000 |
| commit | 163943ac00cb31ac1a88ce5f78a7e2ead37329ec (patch) | |
| tree | 3a355a858510baabc8ba8a0a5d4b9045fc7ea571 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | page_pool: check for DMA sync shortcut earlier (diff) | |
| download | kernel-163943ac00cb31ac1a88ce5f78a7e2ead37329ec.tar.gz kernel-163943ac00cb31ac1a88ce5f78a7e2ead37329ec.zip | |
xsk: use generic DMA sync shortcut instead of a custom one
XSk infra's been using its own DMA sync shortcut to try avoiding
redundant function calls. Now that there is a generic one, remove
the custom implementation and rely on the generic helpers.
xsk_buff_dma_sync_for_cpu() doesn't need the second argument anymore,
remove it.
Signed-off-by: Alexander Lobakin <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 4d975d620a8e..07692e2a7c64 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -2813,7 +2813,7 @@ static int igc_clean_rx_irq_zc(struct igc_q_vector *q_vector, const int budget) } bi->xdp->data_end = bi->xdp->data + size; - xsk_buff_dma_sync_for_cpu(bi->xdp, ring->xsk_pool); + xsk_buff_dma_sync_for_cpu(bi->xdp); res = __igc_xdp_run_prog(adapter, prog, bi->xdp); switch (res) { |
