Commit ee6ecce4 authored by Joanne Hugé's avatar Joanne Hugé

Update wrapper script to include etf offset

parent d7c03ff0
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
script_dir=$(dirname $(realpath $0)) script_dir=$(dirname $(realpath $0))
usage() { usage() {
echo "Usage: $0 (-e delta | -p) [-bg] [-i INTERVAL] [-d TX_BUFFER_LEN] [emerald|slate|onyx]" 1>&2; echo "Usage: $0 (-e delta [-o etf_offset] | -p) [-bg] [-i INTERVAL] [-d TX_BUFFER_LEN] [emerald|slate|onyx]" 1>&2;
exit 1; exit 1;
} }
...@@ -14,8 +14,9 @@ interval=100000 ...@@ -14,8 +14,9 @@ interval=100000
client_options="-a -p 99 -f eth0" client_options="-a -p 99 -f eth0"
qdisc_options="" qdisc_options=""
ip="192.168.99." ip="192.168.99."
etf_offset=500
while getopts "bd:e:ghi:p" opt; do while getopts "bd:e:o:ghi:p" opt; do
case "${opt}" in case "${opt}" in
b ) b )
client_options+=" -b" client_options+=" -b"
...@@ -25,10 +26,12 @@ while getopts "bd:e:ghi:p" opt; do ...@@ -25,10 +26,12 @@ while getopts "bd:e:ghi:p" opt; do
;; ;;
e ) e )
use_etf=1 use_etf=1
client_options+=" -e -q 8"
delta=${OPTARG} delta=${OPTARG}
qdisc_options+="-e $delta" qdisc_options+="-e $delta"
;; ;;
o )
etf_offset=${OPTARG}
;;
g ) g )
client_options+=" -g -t" client_options+=" -g -t"
use_histogram=1 use_histogram=1
...@@ -86,6 +89,10 @@ else ...@@ -86,6 +89,10 @@ else
fi fi
fi fi
if [ -n "${use_etf}" ]; then
client_options+=" -e etf_offset -q 8"
fi
client_options+=" -i $interval" client_options+=" -i $interval"
echo "create_qdisc $qdisc_options"; echo "create_qdisc $qdisc_options";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment