net/mlx5: Let user configure event_eq_size param
authorShay Drory <shayd@nvidia.com>
Wed, 13 Oct 2021 06:57:54 +0000 (09:57 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 25 Oct 2021 20:51:20 +0000 (13:51 -0700)
commita6cb08daa3b459e3dab1d98c67cb8c931f4d81a5
tree32803116396afe190571b7820aa0c04415018910
parent46ae40b94d8826591472798114a723cc7feac7a7
net/mlx5: Let user configure event_eq_size param

Event EQ is an EQ which received the notification of almost all the
events generated by the NIC.
Currently, each event EQ is taking 512KB of memory. This size is not
needed in most use cases, and is critical with large scale. Hence,
allow user to configure the size of the event EQ.

For example to reduce event EQ size to 64, execute::
$ devlink resource set pci/0000:00:0b.0 path /event_eq_size/ size 64
$ devlink dev reload pci/0000:00:0b.0

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Documentation/networking/devlink/mlx5.rst
drivers/net/ethernet/mellanox/mlx5/core/devlink.h
drivers/net/ethernet/mellanox/mlx5/core/devlink_res.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
include/linux/mlx5/eq.h