Skip to content

MilkFlint 0.7a

Pre-release
Pre-release

Choose a tag to compare

@OddBlueDog OddBlueDog released this 13 Nov 19:07
· 51 commits to milkflint-25.12 since this release

An update to 0.62a: Smart Queue (CAKE and sqm-scripts) gets a round of fixes from two code reviews, multi-queue CAKE no longer goes over its set speed, the Wi-Fi driver stops losing what it sends to a phone that went quiet, and HTTPS works as on OpenWrt. Still OpenWrt 25.12.6 and still an alpha.

What's new

Smart Queue: CAKE

  • Multi-queue CAKE stays within its speed. With traffic spread over two or more of its queues (multi-queue is on automatically from 500 Mbit/s), their shares could add up to more than the set speed for moments at a time, again and again, letting the provider's queue fill instead of CAKE's. A queue whose share had just grown was counted as wanting no more while it used all of it, and the others took what it was about to use. It now goes on counting as wanting more for as long as its packets are being held back.
  • With priority tins on multi-queue CAKE, a tin keeps its place against the others when the queues' shares move, instead of losing its priority for a while.
  • The upload's ACK filter uses less CPU. It read every packet queued in a connection's queue for each new packet with the ACK flag, which on an upload is every data packet. Each queue now counts the ACKs it holds, and the filter reads the queue only when there's one. It drops the same ACKs as before.
  • Four fixes from upstream Linux: "Estimate the line's speed" (autorate-ingress) reconfigures CAKE at most every 250 ms, as intended; a tc qdisc change can no longer lose the speed it sets to one of those estimates; a change to fewer priority tins takes the packets it drops off a parent qdisc's counts; and tunnelled packets' inner headers are counted when CAKE takes GRO packets whole.

Smart Queue: sqm-scripts

  • Restarts only what changed. Every interface coming up on the internet port (IPv6's wan6 too) stopped and started its queue, and saving any queue (a guest network's speed limit, say) restarted all of them. Each restart left downloads unshaped for a moment and dropped what was queued. Now a queue whose settings and qdiscs are as its start left them keeps running.
  • A queue that fails to start says so. A CAKE option the kernel refuses used to leave downloads going through unshaped while sqm-scripts reported success. Now the start fails, logs why, and leaves nothing half set up.
  • Smaller fixes: upload multi-queue works with download multi-queue off; stopping a queue no longer logs errors; a queue on a device that went away (PPPoE's session) is stopped when its interface goes down; a run of sqm-scripts that was killed no longer blocks every later one until a restart; starting a queue runs fewer checks.

Smart Queue: the page

  • PPPoE. On a PPPoE connection, CAKE on the port under it sees only PPPoE frames, so per-device fairness, ECN marks, the ACK filter and priorities can't work there. The page shapes the session's own device (pppoe-wan) for a new queue, warns when the queue is on the port under PPPoE, with a button to move it, and the Internet page moves the queue when the connection changes to or from PPPoE. The link presets count the PPPoE header there.
  • Shows whether CAKE runs as saved. The Live card compares what's running with what was saved (CAKE in each direction, one CAKE or multi-queue, the speed) and says "Not as saved" if they differ.
  • Guest networks' fair share per device works. A guest network's speed limit was shared per connection rather than per device, as CAKE took every guest for the router's own internet address. Guest queues now say nonat, existing ones too when an upgrade keeps settings.
  • Link compensation by default. A new queue starts with Fibre / Ethernet compensation rather than none, and "No compensation" is marked as not recommended.
  • Smaller fixes: multi-queue together with "Estimate the line's speed" is refused (the kernel refuses it); a new queue keeps one CAKE for the upload, as the page says; a speed that's empty, mistyped or under 1 kbit/s is refused even with Smart Queue off; the VPN's tunnel and the guest networks aren't offered as the interface; "Keep devices' priorities" survives a save in LuCI; link settings written by an older version, or with LuCI's tc_stab, can be put right by choosing the preset again.

Wi-Fi

  • A phone that goes quiet no longer loses what's sent to it. A sleeping phone sometimes sends a keepalive and then doesn't say it's dozing again; the Wi-Fi firmware then takes it for awake, and what was sent to it in the seconds until it next woke was lost. The driver now holds a station's frames once it stops answering, and sends them when it's heard from again. Module parameter silent_hold (on).
  • Airtime fairness: a phone that wasn't listening is no longer taken for a slow or weak link afterwards.
  • The multicast switch's hint says what on and off each do.

HTTPS

  • HTTPS works, as on OpenWrt. The images lacked luci-ssl, so the router never made itself a certificate and nothing answered on port 443. HTTPS is now on, without a redirect, as in OpenWrt's own images. A new System → HTTPS page turns it on or off, can always redirect to it, and shows the router's certificate (its fingerprint, to compare with what a browser shows) with a button for a new one.

Where the changes come from

  • Upstream Linux (net/sched/sch_cake.c): 7cbfb180945c by Giuseppe Piscitelli; d23a16d907dc and d7010be1ba23 by Jamal Hadi Salim; and sch_cake's part of a41851bea7bf by Fengyuan Gong.
  • Upstream sqm-scripts: 5572ae1 ("propagate shaping startup failures") by Yuen Su.
  • MilkFlint's own: the rest, with tests for each fix: KUnit for the kernel and the Wi-Fi driver, the sqm-scripts run against a pretend kernel, and the web interface's.

Known issues

  • kmod-batman-adv isn't available. It doesn't build on this kernel, so it isn't in MilkFlint's kernel module feed and batman-adv mesh networks can't be set up for now. Kernel 6.12.114 renamed a field that the module still chooses by kernel version.

Installing

Already on MilkFlint? Keep your settings. Flashing over an earlier MilkFlint with "Keep settings" ticked keeps your configuration, and the update brings it up to date. From GL.iNet's firmware or OpenWrt, don't keep settings: untick "Keep settings" (from a shell: sysupgrade -n), as settings from another firmware may not match this one.

  • Flash only milkflint-0.7a-r33311-981c978eff-mediatek-filogic-glinet_gl-mt6000-squashfs-sysupgrade.bin below. Never a factory, preloader or bl31-uboot image.
  • From an earlier MilkFlint: System → Upgrade, or in LuCI, System → Backup / Flash Firmware → Flash image, with "Keep settings" ticked.
  • From GL.iNet's firmware: System → Upgrade → Local Upgrade at http://192.168.8.1, untick "Keep Settings".
  • From OpenWrt: in LuCI, System → Backup / Flash Firmware → Flash image, untick "Keep settings".
  • After a fresh install (settings not kept), plug a cable into a LAN port and open http://192.168.1.1. There's no password yet: sign in with it empty and set one. Wi-Fi is off until you set it up on the Wi-Fi page.

To go back, flash GL.iNet's firmware the same way, again without keeping settings.

Source

Branch milkflint-25.12 at 1944257f0173. Building it is in the README.

SHA-256 of the image: 15a33b66c1b73f20c2f85c739121c24291170626f8471be4e8524666fdf5a747