So I’m running the latest version of openwrt on NanoPi R6S and I’m trying to figure out how to change the default qdisc. I know that it is fq_codel by default but I remember there was a certain file that had this command stored by default of which qdisc it was. I am trying to change it to pfifo by default.
Search for net.core.default_qdisc
I tried but can’t seem to find it. I did search in sysctl.conf file but that command seems to not exist. Not sure where it is now in openwrt by default.
By default, it's compiled into the kernel. If you want to override it, you can try the sysctl -w method (search the forum for that sysctl name).
I did try adding in the original net.core command into the sysctl file but it seems that it didn’t change the scheduler for all interfaces. I think 2 of them or one of them still stayed on fq_codel
boot time is an option
/etc/rc.local
####
tc qdisc del dev eth0 root > /dev/null 2>&1
/sbin/tc qdisc add dev eth0 handle 1: root mqprio\
num_tc 4 map 0 1 1 1 2 2 3 3 1 1 1 1 1 1 1 1\
queues 2@0 2@2 2@4 2@6\
hw 1 mode channel shaper bw_rlimit\
max_rate 600Mbit 700Mbit 800Mbit 900Mbit
####
echo "***test PFIFO(eth0)***"
tc qdisc replace dev eth0 parent 1:1 handle 10: pfifo limit 1024
tc qdisc replace dev eth0 parent 1:2 handle 11: pfifo limit 1024
tc qdisc replace dev eth0 parent 1:3 handle 12: pfifo limit 1024
tc qdisc replace dev eth0 parent 1:4 handle 13: pfifo limit 1024
tc qdisc replace dev eth0 parent 1:5 handle 14: pfifo limit 512
tc qdisc replace dev eth0 parent 1:6 handle 15: pfifo limit 512
tc qdisc replace dev eth0 parent 1:7 handle 16: pfifo limit 128
tc qdisc replace dev eth0 parent 1:8 handle 17: pfifo limit 128
####