mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-22 17:27:48 +04:00
Disabling a port leaves its queued frames holding buffers charged to the admission and shared groups, so every other port is admitted against a smaller pool. On port_disable, stop each unicast and multicast queue's enqueue and dequeue, flush it through FLUSH_CFG and wait for completion, one queue at a time with the QM clock gate dropped around the pass. The gates stay closed until port_enable, and the CPU port is skipped. On IPQ8074 a full queue drains to empty when its port goes down and fills again once the port is back up. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de> Link: https://github.com/openwrt/openwrt/pull/25700 Signed-off-by: Robert Marko <robimarko@gmail.com>