summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinas Rasheed <srasheed@marvell.com>2023-11-14 16:45:33 +0300
committerDavid S. Miller <davem@davemloft.net>2023-11-17 00:55:05 +0300
commit2fba5069959c50c0e5be95e8d67356c63909cbc2 (patch)
tree7ae8dd3ae045713e2a4c96dca1eaf7396e91a1f1
parent5827fe2bc9c4bade6af994676c9823908e091877 (diff)
downloadlinux-2fba5069959c50c0e5be95e8d67356c63909cbc2.tar.xz
octeon_ep: remove dma sync in trasmit path
Cleanup dma sync calls for scatter gather mappings, since they are coherent allocations and do not need explicit sync to be called. Signed-off-by: Shinas Rasheed <srasheed@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/marvell/octeon_ep/octep_main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
index 2c86b911a380..1c02304677c9 100644
--- a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
+++ b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
@@ -872,9 +872,6 @@ static netdev_tx_t octep_start_xmit(struct sk_buff *skb,
if (dma_mapping_error(iq->dev, dma))
goto dma_map_err;
- dma_sync_single_for_cpu(iq->dev, tx_buffer->sglist_dma,
- OCTEP_SGLIST_SIZE_PER_PKT,
- DMA_TO_DEVICE);
memset(sglist, 0, OCTEP_SGLIST_SIZE_PER_PKT);
sglist[0].len[3] = len;
sglist[0].dma_ptr[0] = dma;
@@ -894,10 +891,6 @@ static netdev_tx_t octep_start_xmit(struct sk_buff *skb,
frag++;
si++;
}
- dma_sync_single_for_device(iq->dev, tx_buffer->sglist_dma,
- OCTEP_SGLIST_SIZE_PER_PKT,
- DMA_TO_DEVICE);
-
hw_desc->dptr = tx_buffer->sglist_dma;
}