net/mlx5: prefer DevX API to create Rx objects
authorDekel Peled <dekelp@mellanox.com>
Sun, 10 May 2020 11:18:32 +0000 (14:18 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:56 +0000 (20:35 +0200)
commitd237d22fbe62c9e62d3fb050dbd2259387fe19b3
treea55a00f244ac9ff04389660e550c0b8751fa4fe8
parente09d350eb5b08d7f1256aca0c3c7d415f61a5422
net/mlx5: prefer DevX API to create Rx objects

Currently, DevX API is used to create Rx objects (RQ, RQT, TIR) only
if LRO or hairpin features are enabled on this RQ.

This patch uses DevX API by default, if DevX is supported and can be
used. Otherwise, Verbs API is used.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_trigger.c