net/mlx5e: Abstract MQPRIO params
authorTariq Toukan <tariqt@nvidia.com>
Tue, 6 Jul 2021 10:44:19 +0000 (13:44 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Aug 2021 23:17:28 +0000 (16:17 -0700)
commit86d747a3f9697abe477ad8fe847afa738d3991a0
treef5de44bcf4545977fec8457ddcd4f84df16d02e5
parent248d3b4c9a396f89da43ec7f6becf377e69efeca
net/mlx5e: Abstract MQPRIO params

Abstract the MQPRIO params into a struct.
Use a getter for DCB mode num_tcs.

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/ptp.c
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c