]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit556d589a86cb587e8f50fec5d0289393fcc34f43
treedb8f7d8e94ba32e3116782c55cd1da5c58dad326
parentdd997f7490b76be8d60dbd539c82e46cef7ffb9a
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