]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Enable TX rate limit per VF
authorIdo Shamay <idos@mellanox.com>
Thu, 2 Apr 2015 13:31:16 +0000 (16:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:25:03 +0000 (16:25 -0400)
commit2be71676e35c46e6e651a78354e22704f1383101
tree5af89f4d32eaf487d59f27b711178025e49538f1
parente395e4a68ef991552bcc2ef49e3a3040c3d53910
net/mlx4_en: Enable TX rate limit per VF

Support granular QoS per VF, by implementing the ndo_set_vf_rate.

Enforce a rate limit per VF when called, and enabled only for VFs in
VST mode with user priority supported by the device.

We don't enforce VFs to be in VST mode at the moment of configuration,
but rather save the given rate limit and enforce it when the VF is
moved to VST with user priority which is supported (currently 0).

VST<->VGT or VST qos value state changes are disallowed when a rate
limit is configured. Minimum BW share is not supported yet.

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
include/linux/mlx4/cmd.h