net/mlx5: fix flow engine choice
authorDekel Peled <dekelp@mellanox.com>
Tue, 26 Nov 2019 08:34:22 +0000 (10:34 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commit0adf23adcbb521cd45e2eb88e15aa57317828433
tree1081fef3ff35bbd2f24f4991cefc46f44875b7df
parentc2c0aa75cd0170cc243baf267622f7c3c5309fd5
net/mlx5: fix flow engine choice

Commit in fixes line sets the DV (Direct Verbs) flow engine as default.
Newer versions of DV flow engine use the DR (Direct Rules) features.
DR is supported from RDMA Core library version rdma-core-24.0.
This cause failure to start port when using older rdma-core version,
without DR support.

This patch selects DV flow engine if rdma-core version is v24.0 or
higher. Verbs flow engine is selected otherwise.

Fixes: cd4569d2bf3c ("net/mlx5: change default flow engine to DV")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_19_11.rst
drivers/net/mlx5/mlx5.c