On Wed, Apr 14, 2021 at 05:58:04PM +0300, Nikolay Aleksandrov wrote:
> > @@ -3607,7 +3619,7 @@ int br_multicast_toggle(struct net_bridge *br,
> > unsigned long val)
> > br_multicast_leave_snoopers(br);
> > }
> >
> > - return 0;
> > + return err;
>
> Here won't you return EOPNOTSUPP even though everything above was successful ?
> I mean if br_mc_disabled_update() returns -EOPNOTSUPP it will just be returned
> and the caller would think there was an error.
>
> Did you try running the bridge selftests with this patch ?
>
> Thanks,
> Nik
Thanks, this is a good point. I think I should just do this instead:
if (err == -EOPNOTSUPP)
err = 0;
if (err)
...
And I haven't run the bridge selftests. You are talking about:
tools/testing/selftests/net/forwarding/bridge_{igmp,mld}.sh
right?