Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
94314087
Commit
94314087
authored
Jun 12, 2018
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce more spurious chatter in linux delaysetup.
(Also fix a few bogus stderr redirects.)
parent
e2ca01b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
clientside/tmcc/linux/delaysetup
clientside/tmcc/linux/delaysetup
+6
-6
No files found.
clientside/tmcc/linux/delaysetup
View file @
94314087
...
...
@@ -187,7 +187,7 @@ sub LinkDelaySetup()
open
(
DEL
,
"
>
"
.
TMLINKDELAY
)
or
die
("
Could not open
"
.
TMLINKDELAY
.
"
: $!
");
system
("
modinfo ifb
2>&1 >/dev/null
");
system
("
modinfo ifb
>/dev/null 2>&1
");
if
(
$?
==
0
)
{
print
"
Will use ifb kernel module for duplex endnodeshaping
\n
";
$useifb
=
1
;
...
...
@@ -201,7 +201,7 @@ sub LinkDelaySetup()
$useifb
=
0
;
}
system
("
modinfo sch_netem
2>&1 >/dev/null
");
system
("
modinfo sch_netem
>/dev/null 2>&1
");
if
(
$?
==
0
)
{
print
"
Using sch_netem kernel module for delay/plr
\n
";
$usenetem
=
1
;
...
...
@@ -214,12 +214,12 @@ sub LinkDelaySetup()
$usenetem
=
0
;
print
DEL
"
modprobe sch_plr
\n
";
print
DEL
"
modprobe sch_delay
\n
";
system
("
modinfo sch_plr
2>&1 >/dev/null
");
system
("
modinfo sch_plr
>/dev/null 2>&1
");
if
(
$?
)
{
print
"
WARNING: sch_plr module does not exist;
"
.
"
shaping may fail!
\n
";
}
system
("
modinfo sch_delay
2>&1 >/dev/null
");
system
("
modinfo sch_delay
>/dev/null 2>&1
");
if
(
$?
)
{
print
"
WARNING: sch_delay module does not exist;
"
.
"
shaping may fail!
\n
";
...
...
@@ -379,8 +379,8 @@ sub LinkDelaySetup()
print
DEL
"
ifconfig
$iface
txqueuelen
$queue
\n
"
if
(
$queue
);
print
DEL
"
$TC
qdisc del dev
$iface
root
\n
";
print
DEL
"
$TC
qdisc del dev
$iface
ingress
\n
";
print
DEL
"
$TC
qdisc del dev
$iface
root
>/dev/null 2>&1
\n
";
print
DEL
"
$TC
qdisc del dev
$iface
ingress
>/dev/null 2>&1
\n
";
#
# We cannot use HTB at all if bandw is 0 (i.e., no bandwidth
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment