summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-09-16 20:03:19 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-09-17 07:54:41 +0000
commit2fc157115cb358afba89f92a761c6617159624fc (patch)
treeb4aff2b9e4612fa2bb13641d05c0b604bc2a2455 /interface-definitions
parenteb8d51724236607baa91cc29d1d084dbc0e1762a (diff)
downloadvyos-1x-2fc157115cb358afba89f92a761c6617159624fc.tar.gz
vyos-1x-2fc157115cb358afba89f92a761c6617159624fc.zip
ethernet: T2891: Add ethernet ring-buffer CLI commands
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-ethernet.xml.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/interface-definitions/interfaces-ethernet.xml.in b/interface-definitions/interfaces-ethernet.xml.in
index e8f3f09f1..0aef0d332 100644
--- a/interface-definitions/interfaces-ethernet.xml.in
+++ b/interface-definitions/interfaces-ethernet.xml.in
@@ -268,6 +268,37 @@
</properties>
<defaultValue>auto</defaultValue>
</leafNode>
+ <node name="ring-buffer">
+ <properties>
+ <help>Shared buffer between the device driver and NIC</help>
+ </properties>
+ <children>
+ <leafNode name="rx">
+ <properties>
+ <help>RX ring buffer</help>
+ <valueHelp>
+ <format>80-16384</format>
+ <description>ring buffer size</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 80-16384"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="tx">
+ <properties>
+ <help>TX ring buffer</help>
+ <valueHelp>
+ <format>80-16384</format>
+ <description>ring buffer size</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 80-16384"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
#include <include/vif-s.xml.i>
#include <include/vif.xml.i>
</children>