net/mlx5: Introduce E-switch QoS management
authorMohamad Haj Yahia <mohamad@mellanox.com>
Thu, 11 Aug 2016 08:26:36 +0000 (11:26 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 30 Oct 2016 13:43:13 +0000 (15:43 +0200)
commit1bd27b11c1df33a1dc3277e2a0abbf6bd33cc817
tree13da9fba83b51804ab29a2544efda5f5baa524ec
parent813f854053c26204e2723c498def4c7870dcc7f4
net/mlx5: Introduce E-switch QoS management

Add TSAR to the eswitch which will act as the vports rate limiter.
Create/Destroy TSAR on Enable/Dsiable SRIOV.
Attach/Detach vport to eswitch TSAR on Enable/Disable vport.

Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h