net/mlx5: fix probing if DevX disabled
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 22 Apr 2019 12:38:17 +0000 (12:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:22 +0000 (18:45 +0200)
commitf4a9349da80f8076d060498c3a9f673032e8662c
tree6d0ca18f7603ed78a7a32d2a7ab835b6b7d54b10
parentebd4df0ffceef3ab4ad6ebf6f29c55363d045700
net/mlx5: fix probing if DevX disabled

If there is the support of DevX is exposed by rdma-core but
DevX is not supported by or disabled for the specific interface
the mlx5_devx_cmd_query_hca_attr() routine returns an error
preventing the device from successful probing. The routine
should be invoked only in case of enabled DevX.

Fixes: e2b4925ef7c1 ("net/mlx5: support Direct Rules E-Switch")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c