]> 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)
commitdf379d241713669afac1a8db839bd1d85d8aef85
tree66cd9828999da49105001affd5a16b93e588765b
parentc6b8e18362428ab2c9d9bce24728812d58640ed7
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