From patchwork Thu Jul 18 19:41:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dekel Peled X-Patchwork-Id: 56740 X-Patchwork-Delegate: rasland@nvidia.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 6A82B1DBF; Thu, 18 Jul 2019 21:42:04 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 703F81C01 for ; Thu, 18 Jul 2019 21:42:03 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from dekelp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 18 Jul 2019 22:42:02 +0300 Received: from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx [10.128.130.87]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x6IJg2K4021895; Thu, 18 Jul 2019 22:42:02 +0300 From: Dekel Peled To: yskoh@mellanox.com, viacheslavo@mellanox.com, shahafs@mellanox.com Cc: jackmin@mellanox.com, orika@mellanox.com, dev@dpdk.org Date: Thu, 18 Jul 2019 22:41:57 +0300 Message-Id: <70e5550c339eb720592d2b364069f74f232137a3.1563478168.git.dekelp@mellanox.com> X-Mailer: git-send-email 1.7.1 Subject: [dpdk-dev] [PATCH] net/mlx5: fix define of added tunnel layer bit 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" The new define MLX5_FLOW_LAYER_IPIP is using the same value as existing define MLX5_FLOW_LAYER_GRE_KEY. This patch updates the values to be in order. Fixes: 1b5624cd9062 ("net/mlx5: support IP-in-IP tunnel") Signed-off-by: Dekel Peled Acked-by: Xiaoyu Min Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h index ece967a..3f96bec 100644 --- a/drivers/net/mlx5/mlx5_flow.h +++ b/drivers/net/mlx5/mlx5_flow.h @@ -58,8 +58,8 @@ #define MLX5_FLOW_LAYER_ICMP6 (1u << 19) #define MLX5_FLOW_LAYER_GRE_KEY (1u << 20) -#define MLX5_FLOW_LAYER_IPIP (1u << 20) -#define MLX5_FLOW_LAYER_IPV6_ENCAP (1u << 21) +#define MLX5_FLOW_LAYER_IPIP (1u << 21) +#define MLX5_FLOW_LAYER_IPV6_ENCAP (1u << 22) /* Outer Masks. */ #define MLX5_FLOW_LAYER_OUTER_L3 \