From patchwork Fri Jan 18 08:56:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongseok Koh X-Patchwork-Id: 49934 X-Patchwork-Delegate: shahafs@mellanox.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B7122B9E; Fri, 18 Jan 2019 09:56:15 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 41BF628FD for ; Fri, 18 Jan 2019 09:56:14 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yskoh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 18 Jan 2019 10:56:12 +0200 Received: from scfae-sc-2.mti.labs.mlnx (scfae-sc-2.mti.labs.mlnx [10.101.0.96]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x0I8uAm9003364; Fri, 18 Jan 2019 10:56:10 +0200 From: Yongseok Koh To: shahafs@mellanox.com Cc: dev@dpdk.org, xuemingl@mellanox.com, stable@dpdk.org Date: Fri, 18 Jan 2019 00:56:08 -0800 Message-Id: <20190118085608.9019-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/mlx5: fix configuring device parser for VxLAN GPE X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" PKT_TX_TUNNEL_UDP is introduced to support generic UDP tunnels which is not defined by PKT_TX_TUNNEL_*. SW parser feature of mlx5 device can be used for generic tunnels unknown to device. Even though PKT_TX_TUNNEL_VXLAN_GPE is defined in rte_mbuf.h, it is not a pre-defined tunnel to mlx5 device and SW parser parameters should be set. Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading") Cc: xuemingl@mellanox.com Cc: stable@dpdk.org Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index c2529f96bc..3af3c64af3 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -754,7 +754,8 @@ txq_mbuf_to_swp(struct mlx5_txq_data *txq, struct rte_mbuf *buf, uint16_t off; if (likely(!txq->swp_en || (tunnel != PKT_TX_TUNNEL_UDP && - tunnel != PKT_TX_TUNNEL_IP))) + tunnel != PKT_TX_TUNNEL_IP && + tunnel != PKT_TX_TUNNEL_VXLAN_GPE))) return; /* * The index should have: