summaryrefslogtreecommitdiff
path: root/net/bridge/br_netlink.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2023-03-15 16:11:46 +0300
committerDavid S. Miller <davem@davemloft.net>2023-03-17 11:05:48 +0300
commitc009de1061b57162fed206998dcdf8001416a481 (patch)
tree0f9f1b123fc5a1fb86791529465b1fdb2d35bbf8 /net/bridge/br_netlink.c
parent8c44fa12c8fa09c6c12f0dc25129a6d13ee0a1ea (diff)
downloadlinux-c009de1061b57162fed206998dcdf8001416a481.tar.xz
bridge: mcast: Implement MDB net device operations
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: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_netlink.c')
0 files changed, 0 insertions, 0 deletions