From ebbeed11eab7a4277dd0cc487ef3940456b6c4b6 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Tue, 19 Jan 2010 17:31:22 -0800 Subject: 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. --- templates/interfaces/ethernet/node.tag/disable-flow-control/node.def | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') 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 -- cgit v1.2.3