net/mlx5e: Dynamically allocate DIM structure for SQs/RQs
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Fri, 19 Apr 2024 08:04:43 +0000 (11:04 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Apr 2024 21:22:16 +0000 (14:22 -0700)
commita5e89a3f353b931e917b77e7cf6719c8e8d64c54
tree04a528371e0753461e7cd881398a47b212791cf5
parenteca1e8a62888a31c8dcfad79457232594be40c1a
net/mlx5e: Dynamically allocate DIM structure for SQs/RQs

Make it possible for the DIM structure to be torn down while an SQ or RQ is
still active. Changing the CQ period mode is an example where the previous
sampling done with the DIM structure would need to be invalidated.

Co-developed-by: Nabil S. Alramli <dev@nalramli.com>
Signed-off-by: Nabil S. Alramli <dev@nalramli.com>
Co-developed-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240419080445.417574-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_dim.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c