]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
net/mlx5: Avoid configuring eswitch QoS if not supported
authorEli Cohen <eli@mellanox.com>
Sun, 1 Mar 2020 13:31:49 +0000 (15:31 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 18 Mar 2020 02:41:32 +0000 (19:41 -0700)
commitb5f814cc7381e58877ebc9178283e28725c1b4f0
tree3124c08c40b5e283359284524c7990097a5a592a
parent31e87b39ba9d47cf31f5a91dd3cc9680f5987d12
net/mlx5: Avoid configuring eswitch QoS if not supported

Check if QoS is enabled for the eswitch before attempting to configure
QoS parameters and emit a netlink error if not supported.

Introduce an API to check if QoS is supported for the eswitch.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h