The driver turns learning on for every port and floods to every VSI member,
so "bridge link set flood off" returns -EINVAL and a port that left its
bridge keeps learning. Implement port_pre_bridge_flags and
port_bridge_flags for BR_LEARNING, the three flood flags and BR_ISOLATED,
and add port_fast_age, which deletes the port's learned FDB entries.
BR_LEARNING switches station moves together with new-address learning, so a
port with learning off no longer moves an existing FDB entry onto itself.
Standalone ports now start flooding and not learning, as DSA defines them.
On IPQ8074 each flag reads back in its register and reverts, a station move
is not learned with learning off and is with it on, and routing and NAT
offload are unaffected.
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>