Skip to content

Commit

Permalink
bug: MQ setup is in hexadecimal, not decimal
Browse files Browse the repository at this point in the history
switched to using a printf %x
  • Loading branch information
Dave Täht committed Nov 1, 2012
1 parent 338ea5c commit 3d7589b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/debloat.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# This script is presently targetted to go into
# /etc/network/ifup.d
Expand Down Expand Up @@ -50,15 +50,16 @@ wifi() {
tc qdisc add dev $IFACE parent 1:4 $QDISC $FQ_OPTS noecn
}

# Hardware mq devices are special
# Hardware mq ethernet devs are special and need some sort of filter
# attached to actually use in most cases. FIXME. (see tg3)

mq() {
local I=1
tc qdisc add dev $IFACE handle 1 root mq

for i in $S/$IFACE/queues/tx-*
do
tc qdisc add dev $IFACE parent 1:$I $QDISC $FQ_OPTS
tc qdisc add dev $IFACE parent 1:$(printf "%x" $I) $QDISC $FQ_OPTS
I=`expr $I + 1`
done
}
Expand Down

0 comments on commit 3d7589b

Please sign in to comment.