]> git.baikalelectronics.ru Git - kernel.git/commit
net/vxlan: Use the underlying device index when joining/leaving multicast groups
authorYan Burman <yanb@mellanox.com>
Thu, 20 Dec 2012 03:36:08 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Dec 2012 23:09:55 +0000 (15:09 -0800)
commit44c6557abf2f68c025bf52fde5f29ca2122e274a
treeb8f4b9d5912bb71130be2b2ed6429134b70f561a
parent8cf17d984132ef4185e854a7a8818a6f759e681b
net/vxlan: Use the underlying device index when joining/leaving multicast groups

The socket calls from vxlan to join/leave multicast group aren't
using the index of the underlying device, as a result the stack uses
the first interface that is up. This results in vxlan being non functional
over a device which isn't the 1st to be up.
Fix this by providing the iflink field to the vxlan instance
to the multicast calls.

Signed-off-by: Yan Burman <yanb@mellanox.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c