]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add support for setting VF min rate
authorMohamad Haj Yahia <mohamad@mellanox.com>
Thu, 15 Dec 2016 12:02:53 +0000 (14:02 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Jan 2017 19:14:04 +0000 (21:14 +0200)
commita383cbe0c7b0abc3666ff041547ded7e50870cd9
tree5d5fadab5cfd88362357a380a4c52013a4346c0f
parent635179c0de9afe3ca8cc5eadd4dc9dc229b7dd33
net/mlx5: Add support for setting VF min rate

Add support for SRIOV VF min rate guarantee by using the TSAR BW share
weights mechanism.

The TSAR BW share vport attribute represents the weight of that vport
among the other vports weights which means that the actual vport BW
percentage is the same vport weight percentage among the total vports
weights sum.

Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
include/linux/mlx5/mlx5_ifc.h