]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add profile indications for PTP and QOS HTB features
authorTariq Toukan <tariqt@nvidia.com>
Tue, 7 Dec 2021 06:38:42 +0000 (08:38 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 22 Dec 2021 03:08:56 +0000 (19:08 -0800)
commit036f6b9dc73f1fe6bc553c334e7b87956182f389
tree66cd9828999da49105001affd5a16b93e588765b
parent9b139fc840318a694a031711081afaa2d77bb30d
net/mlx5e: Add profile indications for PTP and QOS HTB features

Let the profile indicate support of the PTP and HTB (QOS) features.
This unifies the logic that calculates the number of netdev queues needed
for the features, and allows simplification of mlx5e_create_netdev(),
which no longer requires number of rx/tx queues as parameters.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Aya Levin <ayal@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_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c