Davide Caratti
2016-Aug-31 12:16 UTC
[Bridge] [PATCH net] bridge: re-introduce 'fix parsing of MLDv2 reports'
commit bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with INCLUDE and no sources as a leave") seems to have accidentally reverted commit 47cc84ce0c2f ("bridge: fix parsing of MLDv2 reports"). This commit brings back a change to br_ip6_multicast_mld2_report() where parsing of MLDv2 reports stops when the first group is successfully added to the MDB cache. Fixes: bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with INCLUDE and no sources as a leave") Signed-off-by: Davide Caratti <dcaratti at redhat.com> --- net/bridge/br_multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index a5423a1..c5fea93 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1138,7 +1138,7 @@ static int br_ip6_multicast_mld2_report(struct net_bridge *br, } else { err = br_ip6_multicast_add_group(br, port, &grec->grec_mca, vid); - if (!err) + if (err) break; } } -- 2.5.5
Nikolay Aleksandrov
2016-Aug-31 12:24 UTC
[Bridge] [PATCH net] bridge: re-introduce 'fix parsing of MLDv2 reports'
On 31/08/16 14:16, Davide Caratti wrote:> commit bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with > INCLUDE and no sources as a leave") seems to have accidentally reverted > commit 47cc84ce0c2f ("bridge: fix parsing of MLDv2 reports"). This > commit brings back a change to br_ip6_multicast_mld2_report() where > parsing of MLDv2 reports stops when the first group is successfully > added to the MDB cache. > > Fixes: bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with INCLUDE and no sources as a leave") > Signed-off-by: Davide Caratti <dcaratti at redhat.com> > --- > net/bridge/br_multicast.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > index a5423a1..c5fea93 100644 > --- a/net/bridge/br_multicast.c > +++ b/net/bridge/br_multicast.c > @@ -1138,7 +1138,7 @@ static int br_ip6_multicast_mld2_report(struct net_bridge *br, > } else { > err = br_ip6_multicast_add_group(br, port, > &grec->grec_mca, vid); > - if (!err) > + if (err) > break; > } > } >Indeed, good catch. Acked-by: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>
Thadeu Lima de Souza Cascardo
2016-Aug-31 13:29 UTC
[Bridge] [PATCH net] bridge: re-introduce 'fix parsing of MLDv2 reports'
On Wed, Aug 31, 2016 at 02:16:44PM +0200, Davide Caratti wrote:> commit bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with > INCLUDE and no sources as a leave") seems to have accidentally reverted > commit 47cc84ce0c2f ("bridge: fix parsing of MLDv2 reports"). This > commit brings back a change to br_ip6_multicast_mld2_report() where > parsing of MLDv2 reports stops when the first group is successfully > added to the MDB cache. > > Fixes: bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with INCLUDE and no sources as a leave") > Signed-off-by: Davide Caratti <dcaratti at redhat.com> > --- > net/bridge/br_multicast.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > index a5423a1..c5fea93 100644 > --- a/net/bridge/br_multicast.c > +++ b/net/bridge/br_multicast.c > @@ -1138,7 +1138,7 @@ static int br_ip6_multicast_mld2_report(struct net_bridge *br, > } else { > err = br_ip6_multicast_add_group(br, port, > &grec->grec_mca, vid); > - if (!err) > + if (err) > break; > } > } > -- > 2.5.5 >Acked-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
David Miller
2016-Aug-31 16:30 UTC
[Bridge] [PATCH net] bridge: re-introduce 'fix parsing of MLDv2 reports'
From: Davide Caratti <dcaratti at redhat.com> Date: Wed, 31 Aug 2016 14:16:44 +0200> commit bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with > INCLUDE and no sources as a leave") seems to have accidentally reverted > commit 47cc84ce0c2f ("bridge: fix parsing of MLDv2 reports"). This > commit brings back a change to br_ip6_multicast_mld2_report() where > parsing of MLDv2 reports stops when the first group is successfully > added to the MDB cache. > > Fixes: bc8c20acaea1 ("bridge: multicast: treat igmpv3 report with INCLUDE and no sources as a leave") > Signed-off-by: Davide Caratti <dcaratti at redhat.com>Applied and queued up for -stable, thanks.