]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/lib.sh
Document ENOBUFS problem
[can-benchmark.git] / gw-tests / lib.sh
index 5d3507f060208afe11afb737a32b2125db64d244..f38458744cd2ff7508d80ad7e2b3a0b8ff993915 100644 (file)
@@ -15,7 +15,7 @@ while [ $# -gt 0 ]; do
        -p) OPT_PLOT_ONLY=1; shift;;
        -X|--no-x11-plot) OPT_NO_X11=1; shift;;
        -t) case "$2" in
-               all|floof|50|oneatatime) OPT_TRAFFIC=$2;;
+               all|flood|50|oneatatime) OPT_TRAFFIC=$2;;
                *) error "Unknown traffic specification: $2";;
            esac;
            shift 2;;
@@ -114,6 +114,8 @@ _run() {
            sshgw 'chrt -p -f 50 `pidof irq/146-can1` > /dev/null || :'
            sshgw 'chrt -p -f 49 `pidof sirq-net-rx/0` > /dev/null || :'
            sshgw 'chrt -p -f 49 `pidof sirq-net-tx/0` > /dev/null || :'
+           # Set the length of qdisc queue to avoid ENOBUFS errors
+           ifconfig can0 txqueuelen 200
            cleanupgw
 
            main