]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1976838a1cfc5aa9a6f264dcf255a93710fd0761
treecd18e37b04463dbef3a4478cf23c6cb720977543
parent81852580924d02d03f1c8187d36b5713d933bb41
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