mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-22 06:45:03 +04:00
devlink dev info reports no chip id, and the ingress port meter keeps its credit when a police action is removed. Report the device and revision fields of the switch id register as the generic asic id and revision; device 0x15 with revision 0 is IPQ807x and 1 is IPQ6018, and probe does not depend on it. Clear both words of the port's meter credit entry when the rate goes to zero, as the port shaper already does. On IPQ8074 the credit entry reads zero after the police action is deleted, and a re-armed police holds its rate. 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>