aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2015-03-18 08:57:33 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-18 14:55:18 -0400
commit822b3b2ebfff8e9b3d006086c527738a7ca00cd0 (patch)
treed3e6b25328bf4716982026b04dee8c0d2718a5d5 /Documentation
parentb65885d29d41c7245bbd98769e781f77e8d9ed5b (diff)
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-class-net-queues8
-rw-r--r--Documentation/networking/scaling.txt9
2 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-net-queues b/Documentation/ABI/testing/sysfs-class-net-queues
index 5e9aeb91d355..0c0df91b1516 100644
--- a/Documentation/ABI/testing/sysfs-class-net-queues
+++ b/Documentation/ABI/testing/sysfs-class-net-queues
@@ -24,6 +24,14 @@ Description:
24 Indicates the number of transmit timeout events seen by this 24 Indicates the number of transmit timeout events seen by this
25 network interface transmit queue. 25 network interface transmit queue.
26 26
27What: /sys/class/<iface>/queues/tx-<queue>/tx_maxrate
28Date: March 2015
29KernelVersion: 4.1
30Contact: netdev@vger.kernel.org
31Description:
32 A Mbps max-rate set for the queue, a value of zero means disabled,
33 default is disabled.
34
27What: /sys/class/<iface>/queues/tx-<queue>/xps_cpus 35What: /sys/class/<iface>/queues/tx-<queue>/xps_cpus
28Date: November 2010 36Date: November 2010
29KernelVersion: 2.6.38 37KernelVersion: 2.6.38
diff --git a/Documentation/networking/scaling.txt b/Documentation/networking/scaling.txt
index 99ca40e8e810..cbfac0949635 100644
--- a/Documentation/networking/scaling.txt
+++ b/Documentation/networking/scaling.txt
@@ -421,6 +421,15 @@ best CPUs to share a given queue are probably those that share the cache
421with the CPU that processes transmit completions for that queue 421with the CPU that processes transmit completions for that queue
422(transmit interrupts). 422(transmit interrupts).
423 423
424Per TX Queue rate limitation:
425=============================
426
427These are rate-limitation mechanisms implemented by HW, where currently
428a max-rate attribute is supported, by setting a Mbps value to
429
430/sys/class/net/<dev>/queues/tx-<n>/tx_maxrate
431
432A value of zero means disabled, and this is the default.
424 433
425Further Information 434Further Information
426=================== 435===================