]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Verify support QoS element type
authorEli Cohen <eli@mellanox.com>
Mon, 29 Jul 2019 21:13:00 +0000 (21:13 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 18:14:25 +0000 (11:14 -0700)
commit8f56863c0f676e76462e8fd53ce361deae988bb8
tree5e030fab8a8548e32b006dcbf03a50dcb3b5c525
parentea861d3e93e697b8bc4278690b55a71bb7264285
net/mlx5: E-Switch, Verify support QoS element type

Check if firmware supports the requested element type before
attempting to create the element type.
In addition, explicitly specify the request element type and tsar type.

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