• Ido Schimmel's avatar
    rtnetlink: bridge: mcast: Move MDB handlers out of bridge driver · cc7f5022
    Ido Schimmel authored
    Currently, the bridge driver registers handlers for MDB netlink
    messages, making it impossible for other drivers to implement MDB
    support.
    
    As a preparation for VXLAN MDB support, move the MDB handlers out of the
    bridge driver to the core rtnetlink code. The rtnetlink code will call
    into individual drivers by invoking their previously added MDB net
    device operations.
    
    Note that while the diffstat is large, the change is mechanical. It
    moves code out of the bridge driver to rtnetlink code. Also note that a
    similar change was made in 2012 with commit 77162022 ("net: add
    generic PF_BRIDGE:RTM_ FDB hooks") that moved FDB handlers out of the
    bridge driver to the core rtnetlink code.
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Reviewed-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cc7f5022
br_netlink.c 55.1 KB