OSDN Git Service

net/mlx5: E-switch, Initialize TSAR Qos hardware block before its user vports
authorParav Pandit <parav@mellanox.com>
Mon, 29 Jul 2019 21:13:04 +0000 (21:13 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 18:14:25 +0000 (11:14 -0700)
commit610090ebce92ab6a3e1e623344be5a9dd72a8b6d
treecd18e37b04463dbef3a4478cf23c6cb720977543
parent332bd3a5b931eb67deb370db62d59f9cc7f76dac
net/mlx5: E-switch, Initialize TSAR Qos hardware block before its user vports

First enable TSAR Qos hardware block in device before enabling its
user vports.

This refactor is needed so that vports can be enabled before their
representor netdevice can be created.

While at it, esw_create_tsar() returns error code which was used only to
print error. However esw_create_tsar() already prints warning if it hits
an error.
Hence, remove the redundant warning.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c