diff options
-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 |