net/mlx5: Do not hold mutex while reading table constants
authorParav Pandit <parav@nvidia.com>
Wed, 24 Feb 2021 09:04:19 +0000 (11:04 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Apr 2021 23:13:05 +0000 (16:13 -0700)
commit16e74672a21b95ebc6fb42420d9a8b91b7e947b0
treef949d4d207ca5bfb7517b0edf3e93bc9506e3520
parent4c4c0a89abd5c08e91df9bcce4ebcb3433bbb9bf
net/mlx5: Do not hold mutex while reading table constants

Table max_size, min and max rate are constants initialized while table
is created. Reading it doesn't need to hold a table mutex. Hence, read
them without holding table mutex.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/rl.c