summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-09 09:56:45 +0000
committerRoy Marples <roy@marples.name>2007-10-09 09:56:45 +0000
commit393d07cb6fb321182185c95088a646fcb9a7be04 (patch)
tree05d5de31e63c8c35d717eeeacb2a5733e35c02a0
parentee1b7d01414b9913f518c333509cceecc16cec38 (diff)
downloadopenrc-393d07cb6fb321182185c95088a646fcb9a7be04.tar.gz
openrc-393d07cb6fb321182185c95088a646fcb9a7be04.tar.bz2
openrc-393d07cb6fb321182185c95088a646fcb9a7be04.tar.xz
txqueuelen_eth0= now works, #190538.
-rw-r--r--ChangeLog4
-rw-r--r--conf.d.Linux/net.example2
-rw-r--r--net.Linux/ifconfig.sh5
-rw-r--r--net.Linux/iproute2.sh5
4 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 25bc21b..710e125 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 <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.
diff --git a/conf.d.Linux/net.example b/conf.d.Linux/net.example
index 8f69faa..dd4973e 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 afa2ede..bc04cdb 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 a59827a..e6652c0 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