• Ido Schimmel's avatar
    bridge: mcast: Implement MDB net device operations · c009de10
    Ido Schimmel authored
    Implement the previously added MDB net device operations in the bridge
    driver so that they could be invoked by core rtnetlink code in the next
    patch.
    
    The operations are identical to the existing br_mdb_{dump,add,del}
    functions. The '_new' suffix will be removed in the next patch. The
    functions are re-implemented in this patch to make the conversion in the
    next patch easier to review.
    
    Add dummy implementations when 'CONFIG_BRIDGE_IGMP_SNOOPING' is
    disabled, so that an error will be returned to user space when it is
    trying to add or delete an MDB entry. This is consistent with existing
    behavior where the bridge driver does not even register rtnetlink
    handlers for RTM_{NEW,DEL,GET}MDB messages when this Kconfig option is
    disabled.
    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>
    c009de10
br_private.h 63.3 KB