From d9fb1e6fee1ab2114ba9cd4dbd10ec6521ec96a9 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 19 Aug 2009 17:13:06 -0700 Subject: Add ability to disable flow-control Bug 4419 --- templates/interfaces/ethernet/node.tag/disable-flow-control/node.def | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 templates/interfaces/ethernet/node.tag/disable-flow-control/node.def 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 -- cgit v1.2.3