]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: HTB, hide and dynamically allocate mlx5e_htb structure
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 9 Feb 2021 23:43:56 +0000 (15:43 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 19 Jul 2022 20:32:51 +0000 (13:32 -0700)
commit83185f1f660fbc675518be012b49b1166c4cb740
tree6b56397e7ae2aa6e72517c1ea43bafa6e4f6edf4
parent06df3538124ff2c59f203c43aca994dc0c4c4b79
net/mlx5e: HTB, hide and dynamically allocate mlx5e_htb structure

Move structure mlx5e_htb from the main driver include file "en.h" to be
hidden in qos.c where the qos functionality is implemented, forward
declare it for the rest of the driver and allocate it dynamically upon
user demand only.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Moshe Tal <moshet@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c