summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-19 17:13:06 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-19 17:13:06 -0700
commitd9fb1e6fee1ab2114ba9cd4dbd10ec6521ec96a9 (patch)
tree35681667e0de308f95e22c5df027130766e21bc3
parent10a869acbf23193c20c33a783a907fdc6a8a70f5 (diff)
downloadvyatta-cfg-d9fb1e6fee1ab2114ba9cd4dbd10ec6521ec96a9.tar.gz
vyatta-cfg-d9fb1e6fee1ab2114ba9cd4dbd10ec6521ec96a9.zip
Add ability to disable flow-control
Bug 4419
-rw-r--r--templates/interfaces/ethernet/node.tag/disable-flow-control/node.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
new file mode 100644
index 0000000..10c6c06
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
@@ -0,0 +1,4 @@
+help: Set to disable Ethernet flow control (pause frames)
+create: sudo ethtool --pause $VAR(../@) autoneg off tx off rx off
+delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
+ sudo ethtool --pause $VAR(../@) autoneg on tx on rx on