summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJason Hendry <jhendry@mintel.com>2014-10-29 16:04:35 +0000
committerDaniil Baturin <daniil@baturin.org>2017-09-14 13:36:37 +0200
commit82823175f65ba083270fe51831c023285ca6e6a0 (patch)
tree587238d1e10812abf5731ecc66b57ff4691f1b26 /templates
parent90d3bb16b90eab993bf951c739ffc63f85ebaab0 (diff)
downloadvyatta-cfg-system-82823175f65ba083270fe51831c023285ca6e6a0.tar.gz
vyatta-cfg-system-82823175f65ba083270fe51831c023285ca6e6a0.zip
Adding templates for tso options. fixing logic in vyatta-interfaces for tso options
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/offload/generic-receive-offload/node.def21
-rw-r--r--templates/interfaces/ethernet/node.tag/offload/generic-segmentation-offload/node.def21
-rw-r--r--templates/interfaces/ethernet/node.tag/offload/node.def1
-rw-r--r--templates/interfaces/ethernet/node.tag/offload/tcp-segmentation-offload/node.def21
-rw-r--r--templates/interfaces/ethernet/node.tag/offload/udp-segmentation-offload/node.def21
5 files changed, 85 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/offload/generic-receive-offload/node.def b/templates/interfaces/ethernet/node.tag/offload/generic-receive-offload/node.def
new file mode 100644
index 00000000..411565ab
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/offload/generic-receive-offload/node.def
@@ -0,0 +1,21 @@
+#
+# Configuration template for offload settings
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+default: "on"
+help: Configure generic-receive-offload option
+val_help: on; Enable generic-receive-offload
+val_help: off; Disable generic-receive-offload
+
+syntax:expression: $VAR(@) == "on" || $VAR(@) == "off" ; "$type must be either 'on' or 'off'"
+
+update: sudo /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(../../@) \
+ --offload-settings $VAR(../tcp-segmentation-offload/@) \
+ $VAR(../udp-segmentation-offload/@) \
+ $VAR(../generic-segmentation-offload/@) \
+ $VAR(@)
+
+
diff --git a/templates/interfaces/ethernet/node.tag/offload/generic-segmentation-offload/node.def b/templates/interfaces/ethernet/node.tag/offload/generic-segmentation-offload/node.def
new file mode 100644
index 00000000..91b1ecf9
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/offload/generic-segmentation-offload/node.def
@@ -0,0 +1,21 @@
+#
+# Configuration template for offload settings
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+default: "on"
+help: Configure generic-segmentation-offload option
+val_help: on; Enable generic-segmentation-offload
+val_help: off; Disable generic-segmentation-offload
+
+syntax:expression: $VAR(@) == "on" || $VAR(@) == "off" ; "$type must be either 'on' or 'off'"
+
+update: sudo /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(../../@) \
+ --offload-settings $VAR(../tcp-segmentation-offload/@) \
+ $VAR(../udp-segmentation-offload/@) \
+ $VAR(@) \
+ $VAR(../generic-receive-offload/@)
+
+
diff --git a/templates/interfaces/ethernet/node.tag/offload/node.def b/templates/interfaces/ethernet/node.tag/offload/node.def
new file mode 100644
index 00000000..180a9e7c
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/offload/node.def
@@ -0,0 +1 @@
+help: Configuraable offload settings
diff --git a/templates/interfaces/ethernet/node.tag/offload/tcp-segmentation-offload/node.def b/templates/interfaces/ethernet/node.tag/offload/tcp-segmentation-offload/node.def
new file mode 100644
index 00000000..641c2c8b
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/offload/tcp-segmentation-offload/node.def
@@ -0,0 +1,21 @@
+#
+# Configuration template for offload settings
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+default: "on"
+help: Configure tcp-segmentation-offload option
+val_help: on; Enable tcp-segmentation-offload
+val_help: off; Disable tcp-segmentation-offload
+
+syntax:expression: $VAR(@) == "on" || $VAR(@) == "off" ; "$type must be either 'on' or 'off'"
+
+update: sudo /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(../../@) \
+ --offload-settings $VAR(@) \
+ $VAR(../udp-segmentation-offload/@) \
+ $VAR(../generic-segmentation-offload/@) \
+ $VAR(../generic-receive-offload/@)
+
+
diff --git a/templates/interfaces/ethernet/node.tag/offload/udp-segmentation-offload/node.def b/templates/interfaces/ethernet/node.tag/offload/udp-segmentation-offload/node.def
new file mode 100644
index 00000000..d96b4be5
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/offload/udp-segmentation-offload/node.def
@@ -0,0 +1,21 @@
+#
+# Configuration template for offload settings
+#
+
+priority: 319 # Failure barrier only - no ordering constraints
+
+type: txt
+default: "on"
+help: Configure udp-segmentation-offload option
+val_help: on; Enable udp-segmentation-offload
+val_help: off; Disable udp-segmentation-offload
+
+syntax:expression: $VAR(@) == "on" || $VAR(@) == "off" ; "$type must be either 'on' or 'off'"
+
+update: sudo /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(../../@) \
+ --offload-settings $VAR(../tcp-segmentation-offload/@) \
+ $VAR(@) \
+ $VAR(../generic-segmentation-offload/@) \
+ $VAR(../generic-receive-offload/@)
+
+