]> git.openpandora.org Git - pandora-kernel.git/commitdiff
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)
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

index 5e9aeb91d355562f94c93bcbef09c5f73d2cc102..0c0df91b1516fb087ae22f82a43dafa3fb44e858 100644 (file)
@@ -24,6 +24,14 @@ Description:
                Indicates the number of transmit timeout events seen by this
                network interface transmit queue.
 
+What:          /sys/class/<iface>/queues/tx-<queue>/tx_maxrate
+Date:          March 2015
+KernelVersion: 4.1
+Contact:       netdev@vger.kernel.org
+Description:
+               A Mbps max-rate set for the queue, a value of zero means disabled,
+               default is disabled.
+
 What:          /sys/class/<iface>/queues/tx-<queue>/xps_cpus
 Date:          November 2010
 KernelVersion: 2.6.38
Simple merge
Simple merge
Simple merge