From: Yongseok Koh Date: Wed, 25 Oct 2017 23:30:40 +0000 (-0700) Subject: net/mlx5: fix TSO inline size calculation X-Git-Tag: spdx-start~1030 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6963ae8b7c703e27ac1fbfaca8c0e9b935879ec1;p=dpdk.git net/mlx5: fix TSO inline size calculation When "net/mlx5: replace network to host macros" is rebased for v4, changes of "net/mlx5: fix calculating TSO inline size" have been reverted. Fixes: 6b30a6a8552a ("net/mlx5: replace network to host macros") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index af0a755462..7785ced441 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -558,14 +558,8 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) break; max_wqe -= n; if (tso) { - uint32_t inl = - rte_cpu_to_be_32(copy_b | - MLX5_INLINE_SEG); - - pkt_inline_sz = - MLX5_WQE_DS(tso_header_sz) * - MLX5_WQE_DWORD_SIZE; - + inl = rte_cpu_to_be_32(copy_b | + MLX5_INLINE_SEG); rte_memcpy((void *)raw, (void *)&inl, sizeof(inl)); raw += sizeof(inl);