From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 8D9152BF4 for ; Thu, 24 May 2018 07:29:07 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from shahafs@mellanox.com) with ESMTPS (AES256-SHA encrypted); 24 May 2018 08:31:04 +0300 Received: from unicorn01.mtl.labs.mlnx. (unicorn01.mtl.labs.mlnx [10.7.12.62]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w4O5T5Nw032348; Thu, 24 May 2018 08:29:05 +0300 From: Shahaf Shuler To: nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com, yskoh@mellanox.com Cc: dev@dpdk.org, xuemingl@mellanox.com Date: Thu, 24 May 2018 08:28:59 +0300 Message-Id: <20180524052859.171592-1-shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180523115937.32201-1-shahafs@mellanox.com> References: <20180523115937.32201-1-shahafs@mellanox.com> Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix generic tunnel offloading compatibility check 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: , X-List-Received-Date: Thu, 24 May 2018 05:29:08 -0000 On some distros, the inbox rdma-core tree can contain the Software Parser enum while the remaining structs still missing. Fixes: 5f8ba81c4228 ("net/mlx5: support generic tunnel offloading") Cc: xuemingl@mellanox.com Signed-off-by: Shahaf Shuler --- On v2: - Check only for struct mlx5dv_sw_parsing_caps for the feature enablement. --- drivers/net/mlx5/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 293144e8a0..8a5229e619 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -120,7 +120,7 @@ mlx5_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config-h.sh $Q sh -- '$<' '$@' \ HAVE_IBV_MLX5_MOD_SWP \ infiniband/mlx5dv.h \ - enum MLX5DV_CONTEXT_MASK_SWP \ + type 'struct mlx5dv_sw_parsing_caps' \ $(AUTOCONF_OUTPUT) $Q sh -- '$<' '$@' \ HAVE_IBV_MLX5_MOD_MPW \ -- 2.12.0