diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-04-04 21:33:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-05 05:08:04 -0400 |
commit | 08f10affe45051e18e0d8291c0a53aecef1b8a14 (patch) | |
tree | 0f18aa6f7d3885f695dfe5ad876363afe03ce6a6 /include/net/dcbnl.h | |
parent | 366cddb4028858079a9a8145bd713c13a9edb3dc (diff) | |
download | linux-stable-08f10affe45051e18e0d8291c0a53aecef1b8a14.tar.gz linux-stable-08f10affe45051e18e0d8291c0a53aecef1b8a14.tar.bz2 linux-stable-08f10affe45051e18e0d8291c0a53aecef1b8a14.zip |
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>
Diffstat (limited to 'include/net/dcbnl.h')
-rw-r--r-- | include/net/dcbnl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index f55c980d8e23..fc5d5dcebb00 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h @@ -48,6 +48,8 @@ struct dcbnl_rtnl_ops { /* IEEE 802.1Qaz std */ int (*ieee_getets) (struct net_device *, struct ieee_ets *); int (*ieee_setets) (struct net_device *, struct ieee_ets *); + int (*ieee_getmaxrate) (struct net_device *, struct ieee_maxrate *); + int (*ieee_setmaxrate) (struct net_device *, struct ieee_maxrate *); int (*ieee_getpfc) (struct net_device *, struct ieee_pfc *); int (*ieee_setpfc) (struct net_device *, struct ieee_pfc *); int (*ieee_getapp) (struct net_device *, struct dcb_app *); |