SQM multi-interface error

Hello guys.

I'm trying to limit my guest and IoT interface with SQM QoS, download works properly but upload doesn't work properly on br-guest and br-automation interfaces.

I don't know what the problem is, could you please help me?

Another thing the sqm script only inits the pppoe-wan queue when the router starts/reboots, it's necessary to launch manually for the rest of the queues.

system
Model Xiaomi Redmi Router AX6000 (OpenWrt U-Boot layout)
Architecture ARMv8 Processor rev 4
Target Platform mediatek/filogic
Firmware Version OpenWrt SNAPSHOT r25829-e6f7e9dca9 / LuCI Master git-24.089.54606~0ecb5ed
Kernel Version 6.1.82
cat /etc/config/sqm
config queue 'eth1'
        option enabled '1'
        option interface 'pppoe-wan'
        option download '900000'
        option upload '900000'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'ethernet'
        option debug_logging '0'
        option verbosity '5'
        option overhead '44'
config queue
        option enabled '1'
        option interface 'br-guest'
        option download '50000'
        option upload '50000'
        option debug_logging '0'
        option verbosity '5'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'none'
config queue
        option enabled '1'
        option interface 'br-automation'
        option download '10000'
        option upload '10000'
        option debug_logging '0'
        option verbosity '5'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'none'
logread | grep SQM
/usr/lib/sqm/run.sh: line 57: can't create : nonexistent directory
SQM: ifb associated with interface br-automation:
SQM: Currently no ifb is associated with br-automation, this is normal during starting of the sqm system.
SQM: Stopping SQM on br-automation
SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev br-automation ingress
SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Invalid qdisc name.
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc del dev br-automation root
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete dev ifb4br-automati type ifb
SQM: /usr/lib/sqm/stop-sqm: ifb4br-automati interface deleted
SQM: ifb associated with interface br-guest:
SQM: Currently no ifb is associated with br-guest, this is normal during starting of the sqm system.
SQM: Stopping SQM on br-guest
SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev br-guest ingress
SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Invalid qdisc name.
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc del dev br-guest root
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete dev ifb4br-guest type ifb
SQM: /usr/lib/sqm/stop-sqm: ifb4br-guest interface deleted
SQM: ifb associated with interface pppoe-wan: ifb4pppoe-wan
SQM: Stopping SQM on pppoe-wan
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc del dev pppoe-wan ingress
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc del dev pppoe-wan root
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete dev ifb4pppoe-wan type ifb
SQM: /usr/lib/sqm/stop-sqm: ifb4pppoe-wan interface deleted
/usr/lib/sqm/run.sh: line 57: can't create : nonexistent directory
SQM: Starting SQM script: piece_of_cake.qos on pppoe-wan, in: 900000 Kbps, out: 900000 Kbps
SQM: fn_exists: function candidate name: sqm_start
SQM: fn_exists: TYPE_OUTPUT: sqm_start: not found
SQM: fn_exists: return value: 1
SQM: Using generic sqm_start_default function.
SQM: fn_exists: function candidate name: sqm_prepare_script
SQM: fn_exists: TYPE_OUTPUT: sqm_prepare_script is a function
SQM: fn_exists: return value: 0
SQM: sqm_start_default: starting sqm_prepare_script
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_5d2d5 type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_5d2d5 root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_5d2d5 down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_5d2d5 type ifb
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_15ce5 type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_15ce5 root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_15ce5 down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_15ce5 type ifb
SQM: sqm_start_default: Starting piece_of_cake.qos
SQM: ifb associated with interface pppoe-wan:
SQM: Currently no ifb is associated with pppoe-wan, this is normal during starting of the sqm system.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name ifb4pppoe-wan type ifb
SQM: fn_exists: function candidate name: egress
SQM: fn_exists: TYPE_OUTPUT: egress is a function
SQM: fn_exists: return value: 0
SQM: egress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev pppoe-wan root
SQM: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cake link layer adjustments:  overhead 44 mpu 0
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev pppoe-wan root cake bandwidth 900000kbit overhead 44 mpu 0 besteffort
SQM: sqm_start_default: egress shaping activated
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_3d763 type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_3d763 ingress
SQM: QDISC ingress is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_3d763 down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_3d763 type ifb
SQM: fn_exists: function candidate name: ingress
SQM: fn_exists: TYPE_OUTPUT: ingress is a function
SQM: fn_exists: return value: 0
SQM: ingress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev pppoe-wan handle ffff: ingress
SQM: cmd_wrapper: tc: LAST ERROR: Error: Invalid handle.
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev pppoe-wan handle ffff: ingress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev ifb4pppoe-wan root
SQM: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cake link layer adjustments:  overhead 44 mpu 0
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev ifb4pppoe-wan root cake bandwidth 900000kbit overhead 44 mpu 0 besteffort wash
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev ifb4pppoe-wan up
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc filter add dev pppoe-wan parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4pppoe-wan
SQM: sqm_start_default: ingress shaping activated
SQM: piece_of_cake.qos was started on pppoe-wan successfully
SQM: Starting SQM script: piece_of_cake.qos on br-guest, in: 50000 Kbps, out: 50000 Kbps
SQM: fn_exists: function candidate name: sqm_start
SQM: fn_exists: TYPE_OUTPUT: sqm_start: not found
SQM: fn_exists: return value: 1
SQM: Using generic sqm_start_default function.
SQM: fn_exists: function candidate name: sqm_prepare_script
SQM: fn_exists: TYPE_OUTPUT: sqm_prepare_script is a function
SQM: fn_exists: return value: 0
SQM: sqm_start_default: starting sqm_prepare_script
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_b8eab type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_b8eab root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_b8eab down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_b8eab type ifb
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_1e863 type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_1e863 root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_1e863 down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_1e863 type ifb
SQM: sqm_start_default: Starting piece_of_cake.qos
SQM: ifb associated with interface br-guest:
SQM: Currently no ifb is associated with br-guest, this is normal during starting of the sqm system.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name ifb4br-guest type ifb
SQM: fn_exists: function candidate name: egress
SQM: fn_exists: TYPE_OUTPUT: egress is a function
SQM: fn_exists: return value: 0
SQM: egress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev br-guest root
SQM: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev br-guest root cake bandwidth 50000kbit besteffort
SQM: sqm_start_default: egress shaping activated
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_54604 type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_54604 ingress
SQM: QDISC ingress is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_54604 down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_54604 type ifb
SQM: fn_exists: function candidate name: ingress
SQM: fn_exists: TYPE_OUTPUT: ingress is a function
SQM: fn_exists: return value: 0
SQM: ingress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev br-guest handle ffff: ingress
SQM: cmd_wrapper: tc: LAST ERROR: Error: Invalid qdisc name.
SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc add dev br-guest handle ffff: ingress
SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Exclusivity flag on, cannot modify.
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev ifb4br-guest root
SQM: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev ifb4br-guest root cake bandwidth 50000kbit besteffort wash
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev ifb4br-guest up
SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc filter add dev br-guest parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4br-guest
SQM: ERROR: cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: Invalid argument
We have an error talking to the kernel
SQM: WARNING: sqm_start_default: piece_of_cake.qos lacks an ingress() function
SQM: sqm_start_default: ingress shaping activated
SQM: piece_of_cake.qos was started on br-guest successfully
SQM: Starting SQM script: piece_of_cake.qos on br-automation, in: 10000 Kbps, out: 10000 Kbps
SQM: fn_exists: function candidate name: sqm_start
SQM: fn_exists: TYPE_OUTPUT: sqm_start: not found
SQM: fn_exists: return value: 1
SQM: Using generic sqm_start_default function.
SQM: fn_exists: function candidate name: sqm_prepare_script
SQM: fn_exists: TYPE_OUTPUT: sqm_prepare_script is a function
SQM: fn_exists: return value: 0
SQM: sqm_start_default: starting sqm_prepare_script
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_4d21b type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_4d21b root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_4d21b down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_4d21b type ifb
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_62ed9 type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_62ed9 root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_62ed9 down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_62ed9 type ifb
SQM: sqm_start_default: Starting piece_of_cake.qos
SQM: ifb associated with interface br-automation:
SQM: Currently no ifb is associated with br-automation, this is normal during starting of the sqm system.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name ifb4br-automati type ifb
SQM: fn_exists: function candidate name: egress
SQM: fn_exists: TYPE_OUTPUT: egress is a function
SQM: fn_exists: return value: 0
SQM: egress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev br-automation root
SQM: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev br-automation root cake bandwidth 10000kbit besteffort
SQM: sqm_start_default: egress shaping activated
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name SQM_IFB_844ec type ifb
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc replace dev SQM_IFB_844ec ingress
SQM: QDISC ingress is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev SQM_IFB_844ec down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete SQM_IFB_844ec type ifb
SQM: fn_exists: function candidate name: ingress
SQM: fn_exists: TYPE_OUTPUT: ingress is a function
SQM: fn_exists: return value: 0
SQM: ingress
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev br-automation handle ffff: ingress
SQM: cmd_wrapper: tc: LAST ERROR: Error: Invalid qdisc name.
SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc add dev br-automation handle ffff: ingress
SQM: ERROR: cmd_wrapper: tc: LAST ERROR: Error: Exclusivity flag on, cannot modify.
SQM: cmd_wrapper: tc: invocation silenced by request, FAILURE either expected or acceptable.
SQM: cmd_wrapper: tc: FAILURE (2): /sbin/tc qdisc del dev ifb4br-automati root
SQM: cmd_wrapper: tc: LAST ERROR: Error: Cannot delete qdisc with handle of zero.
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cmd_wrapper: tc: SUCCESS: /sbin/tc qdisc add dev ifb4br-automati root cake bandwidth 10000kbit besteffort wash
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev ifb4br-automati up
SQM: ERROR: cmd_wrapper: tc: FAILURE (2): /sbin/tc filter add dev br-automation parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4br-automati
SQM: ERROR: cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: Invalid argument
We have an error talking to the kernel
SQM: WARNING: sqm_start_default: piece_of_cake.qos lacks an ingress() function
SQM: sqm_start_default: ingress shaping activated
SQM: piece_of_cake.qos was started on br-automation successfully
tc -s qdisc
qdisc noqueue 0: dev lo root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc mq 0: dev eth0 root
 Sent 354860398 bytes 394243 pkt (dropped 0, overlimits 0 requeues 252)
 backlog 0b 0p requeues 252
qdisc fq_codel 0: dev eth0 parent :10 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :f limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :e limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :d limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :c limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :b limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :a limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :9 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 334949650 bytes 363780 pkt (dropped 0, overlimits 0 requeues 63)
 backlog 0b 0p requeues 63
  maxpacket 1506 drop_overlimit 0 new_flow_count 180 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :7 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :6 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 11092215 bytes 21163 pkt (dropped 0, overlimits 0 requeues 98)
 backlog 0b 0p requeues 98
  maxpacket 1498 drop_overlimit 0 new_flow_count 103 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :5 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 8816821 bytes 9284 pkt (dropped 0, overlimits 0 requeues 91)
 backlog 0b 0p requeues 91
  maxpacket 315 drop_overlimit 0 new_flow_count 49 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :4 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 1712 bytes 16 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :3 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :2 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc clsact ffff: dev eth0 parent ffff:fff1
 Sent 301730922 bytes 368326 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan4 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev lan4 parent ffff:fff1
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan3 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev lan3 parent ffff:fff1
 Sent 4152051 bytes 18545 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan2 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev lan2 parent ffff:fff1
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev br-lan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev br-lan parent ffff:fff1
 Sent 128289490 bytes 135361 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wireguard root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev phy1-ap0 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev phy1-ap0 parent ffff:fff1
 Sent 13258779 bytes 82330 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev phy0-ap0 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev phy0-ap0 parent ffff:fff1
 Sent 2024303 bytes 7054 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc cake 8065: dev pppoe-wan root refcnt 2 bandwidth 900Mbit besteffort triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms noatm overhead 44
 Sent 900958 bytes 4142 pkt (dropped 0, overlimits 64 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 26112b of 15020Kb
 capacity estimate: 900Mbit
 min/max network layer size:           32 /    1480
 min/max overhead-adjusted size:       76 /    1524
 average network hdr offset:            0

                  Tin 0
  thresh        900Mbit
  target            5ms
  interval        100ms
  pk_delay         20us
  av_delay          5us
  sp_delay          1us
  backlog            0b
  pkts             4142
  bytes          900958
  way_inds            1
  way_miss          454
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            4
  bk_flows            1
  un_flows            0
  max_len         13320
  quantum          1514

qdisc ingress ffff: dev pppoe-wan parent ffff:fff1 ----------------
 Sent 6016157 bytes 7039 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev phy0-ap1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev phy0-ap1 parent ffff:fff1
 Sent 299672772 bytes 258619 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc cake 8069: dev br-guest root refcnt 2 bandwidth 50Mbit besteffort triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead 0
 Sent 1943395 bytes 1806 pkt (dropped 0, overlimits 2798 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 265472b of 4Mb
 capacity estimate: 50Mbit
 min/max network layer size:           42 /    1494
 min/max overhead-adjusted size:       42 /    1494
 average network hdr offset:           14

                  Tin 0
  thresh         50Mbit
  target            5ms
  interval        100ms
  pk_delay       1.73ms
  av_delay        781us
  sp_delay          2us
  backlog            0b
  pkts             1806
  bytes         1943395
  way_inds            0
  way_miss           54
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            1
  bk_flows            1
  un_flows            0
  max_len          1494
  quantum          1514

qdisc clsact ffff: dev br-guest parent ffff:fff1
 Sent 185239086 bytes 219595 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev phy0-ap2 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc clsact ffff: dev phy0-ap2 parent ffff:fff1
 Sent 1936545 bytes 9970 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc cake 806d: dev br-automation root refcnt 2 bandwidth 10Mbit besteffort triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead 0
 Sent 39048 bytes 740 pkt (dropped 0, overlimits 19 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 4352b of 4Mb
 capacity estimate: 10Mbit
 min/max network layer size:           42 /     123
 min/max overhead-adjusted size:       42 /     123
 average network hdr offset:           13

                  Tin 0
  thresh         10Mbit
  target            5ms
  interval        100ms
  pk_delay         19us
  av_delay          4us
  sp_delay          2us
  backlog            0b
  pkts              740
  bytes           39048
  way_inds            0
  way_miss           12
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            1
  un_flows            0
  max_len           123
  quantum           305

qdisc clsact ffff: dev br-automation parent ffff:fff1
 Sent 578098 bytes 8684 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc cake 8066: dev ifb4pppoe-wan root refcnt 2 bandwidth 900Mbit besteffort triple-isolate nonat wash no-ack-filter split-gso rtt 100ms noatm overhead 44
 Sent 6016157 bytes 7039 pkt (dropped 0, overlimits 5011 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 56576b of 15140Kb
 capacity estimate: 900Mbit
 min/max network layer size:           36 /    1480
 min/max overhead-adjusted size:       80 /    1524
 average network hdr offset:            0

                  Tin 0
  thresh        900Mbit
  target            5ms
  interval        100ms
  pk_delay         66us
  av_delay         13us
  sp_delay          1us
  backlog            0b
  pkts             7039
  bytes         6016157
  way_inds            0
  way_miss          407
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            2
  bk_flows            1
  un_flows            0
  max_len          1480
  quantum          1514

qdisc cake 806a: dev ifb4br-guest root refcnt 2 bandwidth 50Mbit besteffort triple-isolate nonat wash no-ack-filter split-gso rtt 100ms raw overhead 0
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 0b of 4Mb
 capacity estimate: 50Mbit
 min/max network layer size:        65535 /       0
 min/max overhead-adjusted size:    65535 /       0
 average network hdr offset:            0

                  Tin 0
  thresh         50Mbit
  target            5ms
  interval        100ms
  pk_delay          0us
  av_delay          0us
  sp_delay          0us
  backlog            0b
  pkts                0
  bytes               0
  way_inds            0
  way_miss            0
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            0
  un_flows            0
  max_len             0
  quantum          1514

qdisc cake 806e: dev ifb4br-automati root refcnt 2 bandwidth 10Mbit besteffort triple-isolate nonat wash no-ack-filter split-gso rtt 100ms raw overhead 0
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 0b of 4Mb
 capacity estimate: 10Mbit
 min/max network layer size:        65535 /       0
 min/max overhead-adjusted size:    65535 /       0
 average network hdr offset:            0

                  Tin 0
  thresh         10Mbit
  target            5ms
  interval        100ms
  pk_delay          0us
  av_delay          0us
  sp_delay          0us
  backlog            0b
  pkts                0
  bytes               0
  way_inds            0
  way_miss            0
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            0
  un_flows            0
  max_len             0
  quantum           305
speed test

Thank you so much.

Greetings.

So here is what seems to work and what does not seem to work (judged from seeing pkts in the tc -s qdisc output of a given cake instance):

WORKS:
egress:
        pppoe-wan
        br-guest
        br-automation
ingress:
        ifb4pppoe-wan

DOES NOT WORK:
egress:
ingress:
       ifb4br-guest
       ifb4br-automati

But for the non working ingress instances we also see:

I wonder whether the existence of
qdisc clsact ffff: dev br-automation parent ffff:fff1
and
qdisc clsact ffff: dev br-guest parent ffff:fff1

might cause issues here?

@tohojo might this together with the change referenced here:
https://lore.kernel.org/bpf/20210824000129.aybya44ymxssc3so@apollo.localdomain/T/
cause us issues?

No, definitely not related to that change.

Yes, exactly right. The error says exactly this: there's already another qdisc installed with that handle (the clsact qdisc), so adding the ingress qdisc fails.

Thanks!
OK, so I guess sqm-scripts need to either remove such a qdisc or give an actionable error message instructing the user what the options are?

Can I help with anything or can I change anything in the configuration?

You could manually remove the clsact instances and try again (note these commands are untested, I might have gotten the details wrong):
/sbin/tc qdisc del dev br-automation clsact
/sbin/tc qdisc del dev br-guest clsact
might help. But something/someone must have instantiated the clsact qdisc in the first place, and it is possible that we will clash with that again... e.g. as part of hotplug...

Question, have you used/tried qosify by any chance?

No, I haven't used Qosify, It's an empty installation. I only installed the following:

  • luci-app-sqm
  • sqm-scripts

After deleting the clsact instances it seems like everything works properly.

Is there any way to know who or what has instantiated the cksact qdisc?

Thank you so much for your kind help.

Regards.

I'm using WED and bridger, can it be the cause of this problem?

The latter is probably better. Just removing it will break whatever application added it in the first place which is probably not a good idea :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.