]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: multicast to unicast
authorFelix Fietkau <nbd@nbd.name>
Sat, 21 Jan 2017 20:01:32 +0000 (21:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 17:39:52 +0000 (12:39 -0500)
commit02e9e8577adaa0a24af088e848d11482906a4e59
tree765ba9108bf541141dc7daae83cc40a821eff032
parent6eb98b4f150513bdadc9fd33ac2f92743ffdf18e
bridge: multicast to unicast

Implements an optional, per bridge port flag and feature to deliver
multicast packets to any host on the according port via unicast
individually. This is done by copying the packet per host and
changing the multicast destination MAC to a unicast one accordingly.

multicast-to-unicast works on top of the multicast snooping feature of
the bridge. Which means unicast copies are only delivered to hosts which
are interested in it and signalized this via IGMP/MLD reports
previously.

This feature is intended for interface types which have a more reliable
and/or efficient way to deliver unicast packets than broadcast ones
(e.g. wifi).

However, it should only be enabled on interfaces where no IGMPv2/MLDv1
report suppression takes place. This feature is disabled by default.

The initial patch and idea is from Felix Fietkau.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
[linus.luessing@c0d3.blue: various bug + style fixes, commit message]
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
include/uapi/linux/if_link.h
net/bridge/br_forward.c
net/bridge/br_mdb.c
net/bridge/br_multicast.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_sysfs_if.c