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)
commit1958c2bddfa260f210c59f10a8ef41e08551aab1
tree66cd9828999da49105001affd5a16b93e588765b
parent6c72cb05d4b877300cb23df32f7451bdc55d2940
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