net/mlx4_en: Set max rate-limit for a TC
authorAmir Vadai <amirv@mellanox.com>
Wed, 4 Apr 2012 21:33:31 +0000 (21:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Apr 2012 09:08:04 +0000 (05:08 -0400)
commit109d2446052a484c58f07f71f9457bf7b71017f8
tree523e1c3f51e85c581614fb262654456486586cd3
parent08f10affe45051e18e0d8291c0a53aecef1b8a14
net/mlx4_en: Set max rate-limit for a TC

This patch is using the DCB netlink to set rate limit per ETS TC
Values are accepted in Kbps and rounded up to the nearest multiply of 100Mbps.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h