]> 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)
commit996e5f936f5b1f67e6b931358f5d7a0994461acc
tree520716076455961361ad4318ac45609ff9addbcc
parentbd73e9992f23015775a6c2a87caa46caac7e8abc
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: fc14e10bad57 ("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