Skip to content

Commit bd658dd

Browse files
Tariq ToukanSaeed Mahameed
authored andcommitted
net/mlx5e: Separate dma base address and offset in dma_sync call
Pass the base dma address and offset to dma_sync_single_range_for_cpu(), instead of doing the pre-calculation. Signed-off-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 73faf36 commit bd658dd

File tree

1 file changed

+2
-4
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-4
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,8 @@ struct sk_buff *skb_from_cqe(struct mlx5e_rq *rq, struct mlx5_cqe64 *cqe,
870870
data = va + rx_headroom;
871871
frag_size = MLX5_SKB_FRAG_SZ(rx_headroom + cqe_bcnt);
872872

873-
dma_sync_single_range_for_cpu(rq->pdev,
874-
di->addr + wi->offset,
875-
0, frag_size,
876-
DMA_FROM_DEVICE);
873+
dma_sync_single_range_for_cpu(rq->pdev, di->addr, wi->offset,
874+
frag_size, DMA_FROM_DEVICE);
877875
prefetch(data);
878876
wi->offset += frag_size;
879877

0 commit comments

Comments
 (0)