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)
commit6cedde4513990af7191afa43528533f80e92c989
tree5e030fab8a8548e32b006dcbf03a50dcb3b5c525
parent0000a5f2507deef8668d23d6406e9d19ba371def
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