]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix a regression of igmp join
authorCong Wang <amwang@redhat.com>
Wed, 7 Aug 2013 08:35:45 +0000 (16:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2013 18:41:45 +0000 (11:41 -0700)
commit602e128d6b60c8e1ea9b28581607e655950323d0
treef595dd8e39c19440777f56bdbab863c3939e07d8
parent675b2da0c3b2d639bfeef758ac82aa6e7759b9e0
vxlan: fix a regression of igmp join

This is a regression introduced by:

commit 3972f59910d2cccbc12166d74ca864a1c0797c88
Author: stephen hemminger <stephen@networkplumber.org>
Date:   Thu Jul 18 08:40:15 2013 -0700

    vxlan: fix igmp races

Before this commit, the old code was:

       if (vxlan_group_used(vn, vxlan->default_dst.remote_ip))
               ip_mc_join_group(sk, &mreq);
       else
               ip_mc_leave_group(sk, &mreq);

therefore we shoud check vxlan_group_used(), not its opposite,
for igmp_join.

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c