summaryrefslogtreecommitdiff
path: root/drivers/net/octeontx
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2018-08-17 20:00:22 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2018-08-28 15:27:39 +0200
commit9f92552eb997819d8af80b0634849070075cce2a (patch)
treee4433fb8fcd309a41469a650ad1ea9a674d8ea8f /drivers/net/octeontx
parent1f2766b7ee02c434b554513193c2a2be6664601d (diff)
downloaddpdk-next-eventdev-9f92552eb997819d8af80b0634849070075cce2a.zip
dpdk-next-eventdev-9f92552eb997819d8af80b0634849070075cce2a.tar.gz
dpdk-next-eventdev-9f92552eb997819d8af80b0634849070075cce2a.tar.xz
net/octeontx: fix packet corruption on Tx
LMTST does not guarantee packet content get synced with L2C when HW access the packet for transmitting. Adding coherent IO write barrier will make sure HW sees the correct packet if its modified. Fixes: 9e747589bd4c ("net/octeontx: add packet transmit burst function") Cc: stable@dpdk.org Reported-by: Vikas Aggarwal <vikas.aggarwal@caviumnetworks.com> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Diffstat (limited to 'drivers/net/octeontx')
-rw-r--r--drivers/net/octeontx/octeontx_rxtx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/octeontx/octeontx_rxtx.c b/drivers/net/octeontx/octeontx_rxtx.c
index a9149b4..f861313 100644
--- a/drivers/net/octeontx/octeontx_rxtx.c
+++ b/drivers/net/octeontx/octeontx_rxtx.c
@@ -63,6 +63,7 @@ octeontx_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
count = 0;
+ rte_cio_wmb();
while (count < nb_pkts) {
res = __octeontx_xmit_pkts(dq->lmtline_va, dq->ioreg_va,
dq->fc_status_va,