aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorJohn Fastabend <john.r.fastabend@intel.com>2015-03-18 14:57:33 +0200
committerDavid S. Miller <davem@davemloft.net>2015-03-18 14:55:18 -0400
commit822b3b2ebfff8e9b3d006086c527738a7ca00cd0 (patch)
treed3e6b25328bf4716982026b04dee8c0d2718a5d5 /Documentation/networking
parentMerge branch 'rhashtable_remove_shift' (diff)
downloadlinux-dev-822b3b2ebfff8e9b3d006086c527738a7ca00cd0.tar.xz
linux-dev-822b3b2ebfff8e9b3d006086c527738a7ca00cd0.zip
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/networking')
-rw-r--r--Documentation/networking/scaling.txt9
1 files changed, 9 insertions, 0 deletions
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
with the CPU that processes transmit completions for that queue
(transmit interrupts).
+Per TX Queue rate limitation:
+=============================
+
+These are rate-limitation mechanisms implemented by HW, where currently
+a max-rate attribute is supported, by setting a Mbps value to
+
+/sys/class/net/<dev>/queues/tx-<n>/tx_maxrate
+
+A value of zero means disabled, and this is the default.
Further Information
===================