From 393d07cb6fb321182185c95088a646fcb9a7be04 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 9 Oct 2007 09:56:45 +0000 Subject: txqueuelen_eth0= now works, #190538. --- ChangeLog | 4 ++++ conf.d.Linux/net.example | 2 ++ net.Linux/ifconfig.sh | 5 +++++ net.Linux/iproute2.sh | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 25bc21bf..710e125e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for Gentoo System Intialization ("rc") scripts # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 + 09 Oct 2007; Roy Marples : + + txqueuelen_eth0= now works, #190538. + 03 Oct 2007; Roy Marples : librc.so and libeinfo.so now have symbol versions. diff --git a/conf.d.Linux/net.example b/conf.d.Linux/net.example index 8f69faa9..dd4973ed 100644 --- a/conf.d.Linux/net.example +++ b/conf.d.Linux/net.example @@ -132,6 +132,8 @@ # Some users may need to alter the MTU - here's how #mtu_eth0="1500" +# Same for TX Queue Length +#txqueuelen_eth0="1000" # Each module described below can set a default base metric, lower is # preferred over higher. This is so we can prefer a wired route over a diff --git a/net.Linux/ifconfig.sh b/net.Linux/ifconfig.sh index afa2edea..bc04cdb7 100644 --- a/net.Linux/ifconfig.sh +++ b/net.Linux/ifconfig.sh @@ -239,6 +239,11 @@ ifconfig_pre_start() { eval mtu=\$mtu_${IFVAR} [ -n "${mtu}" ] && ifconfig "${IFACE}" mtu "${mtu}" + # TX Queue Length support + local len= + eval len=\$txqueuelen_${IFVAR} + [ -n "${len}" ] && ifconfig "${IFACE}" txqueuelen "${len}" + local tunnel= eval tunnel=\$iptunnel_${IFVAR} diff --git a/net.Linux/iproute2.sh b/net.Linux/iproute2.sh index a59827af..e6652c0f 100644 --- a/net.Linux/iproute2.sh +++ b/net.Linux/iproute2.sh @@ -160,6 +160,11 @@ iproute2_pre_start() { eval mtu=\$mtu_${IFVAR} [ -n "${mtu}" ] && ip link set mtu "${mtu}" dev "${IFACE}" + # TX Queue Length support + local len= + eval len=\$txqueuelen_${IFVAR} + [ -n "${len}" ] && ip link set txqueuelen "${len}" dev "${IFACE}" + local tunnel= eval tunnel=\$iptunnel_${IFVAR} if [ -n "${tunnel}" ] ; then -- cgit v1.2.3