From 2a6c96be134178583b707e68c9297820aaee088b Mon Sep 17 00:00:00 2001 From: Shahaf Shuler Date: Tue, 7 Mar 2017 13:47:51 +0200 Subject: [PATCH] net/mlx5: fix TSO TCP checksum flag Since PKT_TX_TCP_SEG implies PKT_TX_TCP_CKSUM, the PMD must force this flag. The fix applied for both tunneled and non-tunneled packets. Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO") Fixes: b247f346019b ("net/mlx5: support hardware TSO for VXLAN and GRE") Signed-off-by: Shahaf Shuler Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxtx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 6aee69c7dc..c17504d1f5 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -577,6 +577,9 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) if (is_tunneled && txq->tunnel_en) { tso_header_sz += buf->outer_l2_len + buf->outer_l3_len; + cs_flags |= MLX5_ETH_WQE_L4_INNER_CSUM; + } else { + cs_flags |= MLX5_ETH_WQE_L4_CSUM; } if (unlikely(tso_header_sz > MLX5_MAX_TSO_HEADER)) -- 2.20.1