diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-01-19 17:31:22 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-01-19 17:31:22 -0800 |
commit | ebbeed11eab7a4277dd0cc487ef3940456b6c4b6 (patch) | |
tree | de3b5ba82e614f5473e305f3d99d04230ba9d8e1 | |
parent | 9d6702bf32bd7ca2a82c78b5f76802c6ca619d6f (diff) | |
download | vyatta-cfg-quagga-ebbeed11eab7a4277dd0cc487ef3940456b6c4b6.tar.gz vyatta-cfg-quagga-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.
-rw-r--r-- | templates/interfaces/ethernet/node.tag/disable-flow-control/node.def | 4 |
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 |