Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
2d947238
Commit
2d947238
authored
May 22, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add script to add ETF and pfast qdiscs
parent
32e46196
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
scripts/create_qdisc
scripts/create_qdisc
+41
-0
No files found.
scripts/create_qdisc
0 → 100644
View file @
2d947238
#!/bin/bash
usage
()
{
echo
"Usage:
$0
-e delta|-p"
1>&2
;
exit
1
;
}
while
getopts
"e:p"
opt
;
do
case
"
${
opt
}
"
in
e
)
delta
=
${
OPTARG
}
use_etf
=
1
;;
p
)
use_pfast
=
1
;;
*
)
usage
;;
esac
done
shift
$((
OPTIND-1
))
if
[
-z
"
${
use_etf
}
"
]
&&
[
-z
"
${
use_pfast
}
"
]
;
then
usage
fi
if
[
-n
"
${
use_etf
}
"
]
&&
[
-n
"
${
use_pfast
}
"
]
;
then
usage
fi
if
[
-n
"
${
use_etf
}
"
]
;
then
echo
"Creating ETF qdisc with delta
$delta
"
tc qdisc del root dev eth0
;
tc qdisc add dev eth0 parent root handle 100 prio bands 2 priomap 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1
;
tc qdisc add dev eth0 parent 100:1 etf clockid CLOCK_TAI delta
$delta
;
tc qdisc show dev eth0
;
elif
[
-n
"
${
use_pfast
}
"
]
;
then
echo
"Creating pfast qdisc"
tc qdisc del root dev eth0
;
tc qdisc show
;
fi
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