summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-11-08 12:01:39 +0000
committerAlex Harpin <development@landsofshadow.co.uk>2015-11-08 12:01:39 +0000
commit48933108172072328a142e5bcc5800ac82374581 (patch)
tree855243dd0cb7488ea0190d8cabc3c83636ef2ab2 /templates/interfaces/ethernet
parent76d1c11778338f455f313f2f8e3efc6dfe1f9ffb (diff)
downloadvyatta-cfg-system-48933108172072328a142e5bcc5800ac82374581.tar.gz
vyatta-cfg-system-48933108172072328a142e5bcc5800ac82374581.zip
vyatta-cfg-system: add option to modify interface scatter-gather option
Allow the setting of the interfaces scatter-gather offload setting. This is useful for working around hardware related NIC problems and enables it to be set directly in the configuration. Bug #526 http://bugzilla.vyos.net/show_bug.cgi?id=526
Diffstat (limited to 'templates/interfaces/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/offload-options/scatter-gather/node.def14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/offload-options/scatter-gather/node.def b/templates/interfaces/ethernet/node.tag/offload-options/scatter-gather/node.def
new file mode 100644
index 00000000..71ee1142
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/offload-options/scatter-gather/node.def
@@ -0,0 +1,14 @@
+#
+# Configuration template for offload options
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+help: Configure scatter-gather option
+val_help: on; Enable scatter-gather
+val_help: off; Disable scatter-gather
+
+syntax:expression: $VAR(@) == "on" || $VAR(@) == "off" ; "Must be either 'on' or 'off'"
+
+update: sudo /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(../../@) --offload-option scatter-gather $VAR(@)