From: Jerin Jacob Date: Fri, 17 Aug 2018 14:30:22 +0000 (+0530) Subject: net/octeontx: fix packet corruption on Tx X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9f92552eb997819d8af80b0634849070075cce2a;p=dpdk.git 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 --- 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,