net/mlx5: fix build with rdma-core v19
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 12 Jul 2018 06:40:32 +0000 (09:40 +0300)
committerShahaf Shuler <shahafs@mellanox.com>
Thu, 12 Jul 2018 10:53:59 +0000 (12:53 +0200)
commit06b1fe3f6d2121009b3b879e92b8cca25d4c0c42
tree5f71c2899f4f18af943f49e4ab13732959448055
parent60bd8c9747e861c49d67875128960bd12fb6a208
net/mlx5: fix build with rdma-core v19

The flow counter support introduced by
commit 9a761de8ea14 ("net/mlx5: flow counter support") was intend to
work only with MLNX_OFED_4.3 as the upstream rdma-core
libraries were lack such support.

On rdma-core v19 the support for the flow counters was added but with
different user APIs, hence causing compilation issues on the PMD.

This patch fix the compilation errors by forcing the flow counters
to be enabled only with MLNX_OFED APIs.
Once MLNX_OFED and rdma-core APIs will be aligned, a proper patch to
support the new API will be submitted.

Fixes: 9a761de8ea14 ("net/mlx5: flow counter support")
Cc: stable@dpdk.org
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
drivers/net/mlx5/Makefile