]> git.baikalelectronics.ru Git - kernel.git/commit
{net, RDMA}/mlx5: Fix override of log_max_qp by other device
authorMaor Gottlieb <maorg@nvidia.com>
Wed, 12 May 2021 10:52:27 +0000 (13:52 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 19 May 2021 06:01:19 +0000 (23:01 -0700)
commitd00d72079cd3c750d154c9900582c8204a09fee6
tree6efdbe4c8e3a648593dc1bf866c49d1514238f5d
parentafca4cd244424eab6468f5afe5f1b15b57cb4641
{net, RDMA}/mlx5: Fix override of log_max_qp by other device

mlx5_core_dev holds pointer to static profile, hence when the
log_max_qp of the profile is override by some device, then it
effect all other mlx5 devices that share the same profile.
Fix it by having a profile instance for every mlx5 device.

Fixes: d5e3d07c2ba4 ("net/mlx5: Check FW limitations on log_max_qp before setting it")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/infiniband/hw/mlx5/mr.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h