diff options
author | Jason Hendry <jhendry@mintel.com> | 2014-10-29 16:04:35 +0000 |
---|---|---|
committer | Jason Hendry <jhendry@mintel.com> | 2014-10-29 16:04:35 +0000 |
commit | fe7820e84c720b14591c569e93e6963b58f71820 (patch) | |
tree | 0c622c1dfc2c6a6cf2e31cc9f7e7474f0380c021 /templates | |
parent | f0366c36c87632e7ef7deef338ad67e9878548a4 (diff) | |
download | vyatta-cfg-system-fe7820e84c720b14591c569e93e6963b58f71820.tar.gz vyatta-cfg-system-fe7820e84c720b14591c569e93e6963b58f71820.zip |
Adding templates for tso options. fixing logic in vyatta-interfaces for tso options
Diffstat (limited to 'templates')
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/@) + + |