From 9f92552eb997819d8af80b0634849070075cce2a Mon Sep 17 00:00:00 2001 From: Jerin Jacob Date: Fri, 17 Aug 2018 20:00:22 +0530 Subject: [PATCH] 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 Signed-off-by: Jerin Jacob Acked-by: Santosh Shukla --- drivers/net/octeontx/octeontx_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/octeontx/octeontx_rxtx.c b/drivers/net/octeontx/octeontx_rxtx.c index a9149b4e12..f861313e60 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, -- 2.20.1