cake-adapt: add new package #31451
The three variants install the same files, but none of them declares CONFLICTS, so menuconfig lets you set more than one to =y in an image and they then collide. Other variant packages in the feed (libshout, libgd, libwebsockets) add CONFLICTS. Add CONFLICTS:=cake-adapt here and CONFLICTS:=cake-adapt cake-adapt-mqtt on cake-adapt-mqtt-ssl.
PROVIDES:=cake-adapt
CONFLICTS:=cake-adapt
---
_Generated by Claude Code_
cake-adapt never prints its version on -h/--help/--version: print_usage() at main.c:27 only writes the usage line. The CI's generic runtime check looks for PKG_VERSION in that output, so it will fail. Add a net/cake-adapt/test-version.sh that handles this binary, without grep -q.
---
_Generated by Claude Code_
The upstream Makefile always builds with -Werror, and also uses it for the BPF object. Because of that, the package can break on a future GCC/clang bump or on a target nobody has tried yet. Would you consider overriding WARNINGS here, or making -Werror opt-in upstream? This is optional, not a blocker.
---
_Generated by Claude Code_
@openwrt-ai review again
Reviewed 1 new commits; no new issues found.
---
_Generated by Claude Code_
openwrt-ai
huydoan94
📦 Package Details
Maintainer: @huydoan94
Description:
New package. cake-adapt adjusts the bandwidth of existing CAKE qdiscs (set up
by sqm-scripts) as the line's capacity changes: it measures delay with its own
ICMP probes and lowers the shaper rate when delay builds up, so latency stays
low under load. It is a native C port of cake-autorate's controller.
Three variants each provide
cake-adapt:cake-adapt(no MQTT),cake-adapt-mqttandcake-adapt-mqtt-ssl(log records sent to an MQTTbroker, optionally over TLS). An optional eBPF filter estimates TCP queueing
delay. The LuCI app is a separate PR in openwrt/luci.
---
🔬 Run Testing Details
run on a SNAPSHOT r37759 image with master's libubox/libubus added
(all three variants built)
On the VM: upgrade from 1.0.0 with the config kept, start, reload, stop,
validation refusing a bad option, the fping fallback, a ubusd restart, and
switching between all three variants with LuCI installed (config, features
and daemon checked after each switch).
---
✅ Formalities
- [x] I have used AI or LLM in my pull request, description, or commit
messages, and the description says what it was used for.
AI use: cake-adapt itself was developed with LLM assistance. The Makefile,
commit message and this description were drafted with an LLM, and the build
and VM test were run by an LLM agent on my machine. I reviewed all of it and
the test results.