]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: re-ignore EADDRINUSE from igmp_join
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 25 Aug 2015 23:22:35 +0000 (20:22 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 23:24:35 +0000 (16:24 -0700)
commitf154f448ae2e9d9b8c1b9e2f5877c18d5c544625
tree6cc5bb92f8a83cdfc70525ae1b25f52e82b223d6
parent063bb58ba1da5b7e7fe9349379d82acce3b431ab
vxlan: re-ignore EADDRINUSE from igmp_join

Before b6d34811a41f[1] it used to ignore all errors from igmp_join().
That commit enhanced that and made it error out whatever error happened
with igmp_join(), but that's not good because when using multicast
groups vxlan will try to join it multiple times if the socket is reused
and then the 2nd and further attempts will fail with EADDRINUSE.

As we don't track to which groups the socket is already subscribed, it's
okay to just ignore that error.

Fixes: b6d34811a41f ("vxlan: Move socket initialization to within rtnl scope")
Reported-by: John Nielsen <lists@jnielsen.net>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c