]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Consider RoCE cap before init RDMA resources
authorMaor Gottlieb <maorg@nvidia.com>
Sun, 6 Jun 2021 08:20:46 +0000 (11:20 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 10 Jun 2021 00:20:04 +0000 (17:20 -0700)
commitc189716b2a7c1d2d8658e269735273caa1c38b54
tree520716076455961361ad4318ac45609ff9addbcc
parenta3e5fd9314dfc4314a9567cde96e1aef83a7458a
net/mlx5: Consider RoCE cap before init RDMA resources

Check if RoCE is supported by the device before enable it in
the vport context and create all the RDMA steering objects.

Fixes: 80f09dfc237f ("net/mlx5: Eswitch, enable RoCE loopback traffic")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/rdma.c