Extract data offset from individual mbuf's instead of mbuf0.
Fixes: 6771216c2f44 ("drivers: mark cnxk to support disabling IOVA as PA")

Signed-off-by: Nithin Dabilpuram <ndabilpu...@marvell.com>
---
 drivers/net/cnxk/cn10k_tx.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h
index e7943e3c88..467f0ccc65 100644
--- a/drivers/net/cnxk/cn10k_tx.h
+++ b/drivers/net/cnxk/cn10k_tx.h
@@ -2201,13 +2201,13 @@ cn10k_nix_xmit_pkts_vector(void *tx_queue, uint64_t *ws,
                        vsetq_lane_u64(((struct rte_mbuf *)mbuf0)->data_off, 
vld1q_u64(mbuf0), 1);
                len_olflags0 = vld1q_u64(mbuf0 + 3);
                dataoff_iova1 =
-                       vsetq_lane_u64(((struct rte_mbuf *)mbuf0)->data_off, 
vld1q_u64(mbuf1), 1);
+                       vsetq_lane_u64(((struct rte_mbuf *)mbuf1)->data_off, 
vld1q_u64(mbuf1), 1);
                len_olflags1 = vld1q_u64(mbuf1 + 3);
                dataoff_iova2 =
-                       vsetq_lane_u64(((struct rte_mbuf *)mbuf0)->data_off, 
vld1q_u64(mbuf2), 1);
+                       vsetq_lane_u64(((struct rte_mbuf *)mbuf2)->data_off, 
vld1q_u64(mbuf2), 1);
                len_olflags2 = vld1q_u64(mbuf2 + 3);
                dataoff_iova3 =
-                       vsetq_lane_u64(((struct rte_mbuf *)mbuf0)->data_off, 
vld1q_u64(mbuf3), 1);
+                       vsetq_lane_u64(((struct rte_mbuf *)mbuf3)->data_off, 
vld1q_u64(mbuf3), 1);
                len_olflags3 = vld1q_u64(mbuf3 + 3);
 
                /* Move mbufs to point pool */
-- 
2.25.1

Reply via email to