txqueuelen_eth0= now works, #190538.

This commit is contained in:
Roy Marples 2007-10-09 09:56:45 +00:00
parent ee1b7d0141
commit 393d07cb6f
4 changed files with 16 additions and 0 deletions

View File

@ -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 <uberlord@gentoo.org>:
txqueuelen_eth0= now works, #190538.
03 Oct 2007; Roy Marples <uberlord@gentoo.org>:
librc.so and libeinfo.so now have symbol versions.

View File

@ -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

View File

@ -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}

View File

@ -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