summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-01-19 17:31:22 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-01-19 17:31:22 -0800
commitebbeed11eab7a4277dd0cc487ef3940456b6c4b6 (patch)
treede3b5ba82e614f5473e305f3d99d04230ba9d8e1 /templates/interfaces/ethernet
parent9d6702bf32bd7ca2a82c78b5f76802c6ca619d6f (diff)
downloadvyatta-cfg-system-ebbeed11eab7a4277dd0cc487ef3940456b6c4b6.tar.gz
vyatta-cfg-system-ebbeed11eab7a4277dd0cc487ef3940456b6c4b6.zip
Bugfix 5162: Make disabling flow control work at boot time.
We need to delay disabling flow control in the sequence of events until after the interface address has been set. An additional benefit of adding a "priority" field is that interface configuration will not fail if the attempt to disable flow control fails for some reason.
Diffstat (limited to 'templates/interfaces/ethernet')
-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
index 10c6c066..b9884121 100644
--- a/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
@@ -1,4 +1,8 @@
+priority: 320 # Must run after interface is configured.
+
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