From: Yongseok Koh Date: Wed, 3 Jan 2018 08:06:22 +0000 (-0800) Subject: net/mlx5: fix HW checksum offload for outer IP X-Git-Tag: spdx-start~549 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d1eded3a8e6fa28087eef3062081a8b0f2dca222;p=dpdk.git net/mlx5: fix HW checksum offload for outer IP Checking HW checksum offload flag for outer IP is missing. If flag is set for only outer IP, this can't be set properly. Fixes: f5fde5205101 ("net/mlx5: add hardware checksum offload for tunnel packets") 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.h b/drivers/net/mlx5/mlx5_rxtx.h index e70d52361a..90f1291681 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -636,7 +636,8 @@ txq_ol_cksum_to_cs(struct mlx5_txq_data *txq_data, struct rte_mbuf *buf) /* Should we enable HW CKSUM offload */ if (buf->ol_flags & - (PKT_TX_IP_CKSUM | PKT_TX_TCP_CKSUM | PKT_TX_UDP_CKSUM)) { + (PKT_TX_IP_CKSUM | PKT_TX_TCP_CKSUM | PKT_TX_UDP_CKSUM | + PKT_TX_OUTER_IP_CKSUM)) { if (txq_data->tunnel_en && (buf->ol_flags & (PKT_TX_TUNNEL_GRE | PKT_TX_TUNNEL_VXLAN))) {