]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: Add max rate tx queue attribute
authorJohn Fastabend <john.r.fastabend@intel.com>
Wed, 18 Mar 2015 12:57:33 +0000 (14:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 18:55:18 +0000 (14:55 -0400)
commit822b3b2ebfff8e9b3d006086c527738a7ca00cd0
treed3e6b25328bf4716982026b04dee8c0d2718a5d5
parentb65885d29d41c7245bbd98769e781f77e8d9ed5b
net: Add max rate tx queue attribute

This adds a tx_maxrate attribute to the tx queue sysfs entry allowing
for max-rate limiting. Along with DCB-ETS and BQL this provides another
knob to tune queue performance. The limit units are Mbps.

By default it is disabled. To disable the rate limitation after it
has been set for a queue, it should be set to zero.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/ABI/testing/sysfs-class-net-queues
Documentation/networking/scaling.txt
include/linux/netdevice.h
net/core/net-sysfs.c