net/mlx5: Increase the max number of channels to 128
authorFan Li <fanl@mellanox.com>
Mon, 16 Dec 2019 12:46:15 +0000 (14:46 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 7 Jan 2020 18:41:03 +0000 (10:41 -0800)
commit57c7fce14b1ad512a42abe33cb721a2ea3520d4b
tree551a537ca8f0a053686fe4f4a43ae114a26a7c0f
parent15fc92ec3ad4cfb34218e6b6c38c1355938fe49e
net/mlx5: Increase the max number of channels to 128

Currently the max number of channels is limited to 64, which is half of
the indirection table size to allow some flexibility. But on servers
with more than 64 cores, users may want to utilize more queues.

This patch increases the advertised max number of channels to 128 by
changing the ratio between channels and indirection table slots to 1:1.
At the same time, the driver still enable no more than 64 channels at
loading. Users can change it by ethtool afterwards.

Signed-off-by: Fan Li <fanl@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c