]> git.baikalelectronics.ru Git - kernel.git/commit
net/dcb: Add an optional max rate attribute
authorAmir Vadai <amirv@mellanox.com>
Wed, 4 Apr 2012 21:33:30 +0000 (21:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Apr 2012 09:08:04 +0000 (05:08 -0400)
commit51c4a2ebba32e346e0ac064c33801b6190399259
tree0f18aa6f7d3885f695dfe5ad876363afe03ce6a6
parent601b354f9d3c3d3a59c019920c9a95c40dfc16e0
net/dcb: Add an optional max rate attribute

Although not specified in 8021Qaz spec, it could be useful to enable drivers
whose HW supports setting a rate limit for an ETS TC. This patch adds this
optional attribute to DCB netlink. To use it, drivers should implement and
register the callbacks ieee_setmaxrate and ieee_getmaxrate. The units are 64
bits long and specified in Kbps to enable usage over both slow and very fast
networks.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dcbnl.h
include/net/dcbnl.h
net/dcb/dcbnl.c