[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iLwcd=Gp7X7DKsw+kG2FHA1PzwG3Up8Tb2wjA=Bz94Oxg@mail.gmail.com>
Date: Wed, 28 Feb 2024 09:51:04 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: "David S . Miller" <davem@...emloft.net>, Paolo Abeni <pabeni@...hat.com>,
David Ahern <dsahern@...nel.org>, Jiri Pirko <jiri@...dia.com>, netdev@...r.kernel.org,
eric.dumazet@...il.com
Subject: Re: [PATCH v2 net-next 03/15] ipv6: addrconf_disable_ipv6() optimizations
On Wed, Feb 28, 2024 at 3:52 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Tue, 27 Feb 2024 15:01:48 +0000 Eric Dumazet wrote:
> > + if (p == &net->ipv6.devconf_dflt->disable_ipv6) {
> > + WRITE_ONCE(*p, newf);
> > + return 0;
> > + }
> > +
> > if (!rtnl_trylock())
> > return restart_syscall();
> >
> > - net = (struct net *)table->extra2;
> > old = *p;
> > WRITE_ONCE(*p, newf);
> >
> > - if (p == &net->ipv6.devconf_dflt->disable_ipv6) {
> > - rtnl_unlock();
> > - return 0;
> > - }
> > -
> > - if (p == &net->ipv6.devconf_all->disable_ipv6) {
> > - WRITE_ONCE(net->ipv6.devconf_dflt->disable_ipv6, newf);
>
> Why is this line going away? We pulled up the handling of devconf_all
> not devconf_dflt
>
Good catch, I simply misread the line.
Powered by blists - more mailing lists