OSDN Git Service

net/mlx5e: Specify SQ stats struct for mlx5e_open_txqsq()
authorTariq Toukan <tariqt@nvidia.com>
Wed, 18 Aug 2021 11:17:33 +0000 (14:17 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:10:51 +0000 (18:10 -0700)
commite0ee6891174c7db210e6c55cab69656c40956a6f
treedad3e195aa2c033a5967e3d1f0ada3cc81156458
parent1660034361904dfcb82714aa48615a9b66462ee6
net/mlx5e: Specify SQ stats struct for mlx5e_open_txqsq()

Let the caller of mlx5e_open_txqsq() directly pass the SQ stats
structure pointer.
This replaces logic involving the qos_queue_group_id parameter,
and helps generalizing its role in the next patch.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@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