ebb058e4a12895adcdaaebf78a2c0b5938585dc7
[deb_dpdk.git] / debian / patches / net-mlx5-fix-build-with-rdma-core-v19.patch
1 From 06b1fe3f6d2121009b3b879e92b8cca25d4c0c42 Mon Sep 17 00:00:00 2001
2 From: Shahaf Shuler <shahafs@mellanox.com>
3 Date: Thu, 12 Jul 2018 09:40:32 +0300
4 Subject: [PATCH] net/mlx5: fix build with rdma-core v19
5
6 The flow counter support introduced by
7 commit 9a761de8ea14 ("net/mlx5: flow counter support") was intend to
8 work only with MLNX_OFED_4.3 as the upstream rdma-core
9 libraries were lack such support.
10
11 On rdma-core v19 the support for the flow counters was added but with
12 different user APIs, hence causing compilation issues on the PMD.
13
14 This patch fix the compilation errors by forcing the flow counters
15 to be enabled only with MLNX_OFED APIs.
16 Once MLNX_OFED and rdma-core APIs will be aligned, a proper patch to
17 support the new API will be submitted.
18
19 Fixes: 9a761de8ea14 ("net/mlx5: flow counter support")
20 Cc: stable@dpdk.org
21
22 Reported-by: Stephen Hemminger <stephen@networkplumber.org>
23 Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
24 Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
25 Acked-by: Ori Kam <orika@mellanox.com>
26
27 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
28 Original-Author: Shahaf Shuler <shahafs@mellanox.com>
29 Origin: backport, http://git.dpdk.org/dpdk/commit/?id=06b1fe3f6d2121009b3b879e92b8cca25d4c0c42
30 Last-Update: 2018-06-17
31 ---
32  drivers/net/mlx5/Makefile | 2 +-
33  1 file changed, 1 insertion(+), 1 deletion(-)
34
35 --- a/drivers/net/mlx5/Makefile
36 +++ b/drivers/net/mlx5/Makefile
37 @@ -145,7 +145,7 @@ mlx5_autoconf.h.new: $(RTE_SDK)/buildtoo
38         $Q sh -- '$<' '$@' \
39                 HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT \
40                 infiniband/verbs.h \
41 -               enum IBV_FLOW_SPEC_ACTION_COUNT \
42 +               type 'struct ibv_counter_set_init_attr' \
43                 $(AUTOCONF_OUTPUT)
44  
45  # Create mlx5_autoconf.h or update it in case it differs from the new one.