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)
commitc9497c98901c689bf6c357f812bf864ed8f50ace
tree5d5fadab5cfd88362357a380a4c52013a4346c0f
parent264d7bf3c1cfd3a128d621b367f57b81d038ba10
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