diff options
author | Nikolay Aleksandrov <nikolay@nvidia.com> | 2020-10-29 01:38:31 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-30 17:49:19 -0700 |
commit | 955062b03fa62b802a1ee34fbb04e39f7a70ae73 (patch) | |
tree | c507b7adcc545319addfae44a9d46db5545f06c4 /include/uapi/linux/if_bridge.h | |
parent | 8ece853d128b486c06dd937cb1f1ed4d1de14486 (diff) | |
download | linux-955062b03fa62b802a1ee34fbb04e39f7a70ae73.tar.gz linux-955062b03fa62b802a1ee34fbb04e39f7a70ae73.tar.bz2 linux-955062b03fa62b802a1ee34fbb04e39f7a70ae73.zip |
net: bridge: mcast: add support for raw L2 multicast groups
Extend the bridge multicast control and data path to configure routes
for L2 (non-IP) multicast groups.
The uapi struct br_mdb_entry union u is extended with another variant,
mac_addr, which does not change the structure size, and which is valid
when the proto field is zero.
To be compatible with the forwarding code that is already in place,
which acts as an IGMP/MLD snooping bridge with querier capabilities, we
need to declare that for L2 MDB entries (for which there exists no such
thing as IGMP/MLD snooping/querying), that there is always a querier.
Otherwise, these entries would be flooded to all bridge ports and not
just to those that are members of the L2 multicast group.
Needless to say, only permanent L2 multicast groups can be installed on
a bridge port.
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20201028233831.610076-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/if_bridge.h')
-rw-r--r-- | include/uapi/linux/if_bridge.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h index d975e1223884..13d59c51ef5b 100644 --- a/include/uapi/linux/if_bridge.h +++ b/include/uapi/linux/if_bridge.h @@ -651,6 +651,7 @@ struct br_mdb_entry { union { __be32 ip4; struct in6_addr ip6; + unsigned char mac_addr[ETH_ALEN]; } u; __be16 proto; } addr; |