]> git.baikalelectronics.ru Git - kernel.git/commit
multicast: Extend ip address command to enable multicast group join/leave on
authorMadhu Challa <challa@noironetworks.com>
Wed, 25 Feb 2015 17:58:35 +0000 (09:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 21:25:25 +0000 (16:25 -0500)
commit610e912110e55725e937f484d427008125c3f812
tree3cc79521cb6dbcd600384507329ecef93ae618ab
parentfb687ca9cc3653919af7f88a3490d8a4344067b3
multicast: Extend ip address command to enable multicast group join/leave on

Joining multicast group on ethernet level via "ip maddr" command would
not work if we have an Ethernet switch that does igmp snooping since
the switch would not replicate multicast packets on ports that did not
have IGMP reports for the multicast addresses.

Linux vxlan interfaces created via "ip link add vxlan" have the group option
that enables then to do the required join.

By extending ip address command with option "autojoin" we can get similar
functionality for openvswitch vxlan interfaces as well as other tunneling
mechanisms that need to receive multicast traffic. The kernel code is
structured similar to how the vxlan driver does a group join / leave.

example:
ip address add 224.1.1.10/24 dev eth5 autojoin
ip address del 224.1.1.10/24 dev eth5

Signed-off-by: Madhu Challa <challa@noironetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
include/net/netns/ipv6.h
include/uapi/linux/if_addr.h
net/ipv4/devinet.c
net/ipv4/igmp.c
net/ipv6/addrconf.c
net/ipv6/mcast.c