]> git.karo-electronics.de Git - linux-beck.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)
commitcda373f4849d5dd6fedceb4aeba35682a0e1a833
tree5af89f4d32eaf487d59f27b711178025e49538f1
parent08068cd5683f11e4505aa9c8cc6ed5942f8ad299
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