net: bridge: mcast: prepare mdb netlink for mcast router split
authorLinus Lüssing <linus.luessing@c0d3.blue>
Thu, 13 May 2021 13:20:45 +0000 (15:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2021 21:04:31 +0000 (14:04 -0700)
commitff391c5d9871894c620f1e6ae2b18d7db572e49d
treedb8f7d8e94ba32e3116782c55cd1da5c58dad326
parent44ebb081dc6934e43d3c7444f183d6426adeca21
net: bridge: mcast: prepare mdb netlink for mcast router split

In preparation for the upcoming split of multicast router state into
their IPv4 and IPv6 variants and to avoid IPv6 #ifdef clutter later add
some inline functions for the protocol specific parts in the mdb router
netlink code. Also the we need iterate over the port instead of router
list to be able put one router port entry with both the IPv4 and IPv6
multicast router info later.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c