• Linus Lüssing's avatar
    net: bridge: mcast: split multicast router state for IPv4 and IPv6 · a3c02e76
    Linus Lüssing authored
    A multicast router for IPv4 does not imply that the same host also is a
    multicast router for IPv6 and vice versa.
    
    To reduce multicast traffic when a host is only a multicast router for
    one of these two protocol families, keep router state for IPv4 and IPv6
    separately. Similar to how querier state is kept separately.
    
    For backwards compatibility for netlink and switchdev notifications
    these two will still only notify if a port switched from either no
    IPv4/IPv6 multicast router to any IPv4/IPv6 multicast router or the
    other way round. However a full netlink MDB router dump will now also
    include a multicast router timeout for both IPv4 and IPv6.
    Signed-off-by: default avatarLinus Lüssing <linus.luessing@c0d3.blue>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a3c02e76
br_multicast.c 108 KB