From 0d51a5ec26ccca4582f4762854ac3b28208c4a04 Mon Sep 17 00:00:00 2001 From: Dekel Peled Date: Wed, 15 May 2019 13:07:45 +0300 Subject: [PATCH] net/mlx5: fix order of items in NEON scatter Previous patch added handling of metadata for multi-segment packet. Function txq_scatter_v in file mlx5_rxtx_vec_neon.h was updated incorrectly, items were inserted into WQE in wrong order. This patch fixes the issue, inserting items into WQE correctly. Fixes: 7f4019d370f6 ("net/mlx5: fix Tx metadata for multi-segment packet") Cc: stable@dpdk.org Signed-off-by: Dekel Peled Acked-by: Shahaf Shuler --- drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx_vec_neon.h b/drivers/net/mlx5/mlx5_rxtx_vec_neon.h index b2cc710887..cf5c9da8bd 100644 --- a/drivers/net/mlx5/mlx5_rxtx_vec_neon.h +++ b/drivers/net/mlx5/mlx5_rxtx_vec_neon.h @@ -171,7 +171,7 @@ txq_scatter_v(struct mlx5_txq_data *txq, struct rte_mbuf **pkts, /* Fill ESEG in the header. */ vst1q_u32((void *)(t_wqe + 1), ((uint32x4_t){ 0, - cs_flags << 16 | rte_cpu_to_be_16(len), + rte_cpu_to_be_16(len) << 16 | cs_flags, metadata, 0 })); txq->wqe_ci = wqe_ci; } -- 2.20.1