]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Use the 'num_doorbells' devlink param
authorCosmin Ratiu <cratiu@nvidia.com>
Tue, 16 Sep 2025 14:11:44 +0000 (17:11 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 01:30:54 +0000 (18:30 -0700)
commit11bbcfb7668c6f4d97260f7caaefea22678bc31e
tree75680a9629fbc958480c9265e4e489a7df891721
parent6bdcb735fec6cb866b0d40634d4f23effba81074
net/mlx5e: Use the 'num_doorbells' devlink param

Use the new devlink param to control how many doorbells mlx5e devices
allocate and use. The maximum number of doorbells configurable is capped
to the maximum number of channels. This only applies to the Ethernet
part, the RDMA devices using mlx5 manage their own doorbells.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/devlink/mlx5.rst
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/en_common.c