summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-20 11:32:08 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-20 11:32:08 -0700
commitb21ed5d3b9df3b347c2efd8341fb042469a3aaee (patch)
tree585177ee9e83153351699ec0f1e21980d6daafa7
parent4d8e5cc509ac3c74cdc25a7a22256c6624ffe3a9 (diff)
parentd9fb1e6fee1ab2114ba9cd4dbd10ec6521ec96a9 (diff)
downloadvyatta-cfg-b21ed5d3b9df3b347c2efd8341fb042469a3aaee.tar.gz
vyatta-cfg-b21ed5d3b9df3b347c2efd8341fb042469a3aaee.zip
Merge branch 'kenwood' of suva.vyatta.com:/git/vyatta-cfg into kenwood
-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