]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35684f3c2745ae44faea464a012ec7f45a45bc29
tree523e1c3f51e85c581614fb262654456486586cd3
parent0c27a19ff716656eba93ac4155102ff08616dda9
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