#Realtek / #OpenWrt / #switchdev: So I can trap packets, like MLD, to the CPU via the packet inspection engine now. Now I want the Linux bridge to (potentially) forward MLD in accordance to #RFC4541, that is to all mc router ports. However the bridge will last-minute bail out bc. nbp_switchdev_allowed_egress() is false bc. it came from an offloaded port.
Changing skb->offload_fwd_mark to 0 somewhere would be the easiest. But not quite sure where and if that'd be too hacky. 1/2

#multicast

Alternatively, I'd need to use a different PIE action, there is one which allows trapping to a set of ports (including CPU) instead of a single port. Which would also mean I'd have to always update these installed PIE rules when multicast routers appear or disappear behind any ports. Which would be quite a bit more work then toggling one bit in one place. Also would consume/dedicate one more multicast port mask entry for this special purpose. Hm... 2/2

#realtek #openwrt

(And would also be worth checking if maybe #Realtek #rtl83xx might be buggy here. I'm having a hunch that maybe with the different MLD/IGMP trapping method on #rtl83xx that reports might not be forwarded to other multicast routers.)