[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAADnVQJKpTJitoPernxEHP+R0tMAqwdOuDMcQAszu-ZM4D9Oow@mail.gmail.com>
Date: Fri, 14 Jun 2019 17:04:33 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Eric Dumazet <edumazet@...gle.com>,
"David S . Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Willem de Bruijn <willemb@...gle.com>,
Feng Tang <feng.tang@...el.com>
Subject: Re: [PATCH net 1/4] sysctl: define proc_do_static_key()
On Fri, Jun 14, 2019 at 4:55 PM Eric Dumazet <eric.dumazet@...il.com> wrote:
>
> On 6/14/19 4:45 PM, Alexei Starovoitov wrote:
> > On Fri, Jun 14, 2019 at 04:22:18PM -0700, Eric Dumazet wrote:
>
> > maxlen is ignored by proc_do_static_key(), right?
>
> That is right, I was not sure putting a zero or sizeof(int)
> would make sense here.
>
> Using sizeof(...key) is consistent with other sysctls,
yes. that makes sense. I was just curious whether I missed something.
> even of proc_do_static_key() uses a temporary structure and
> a temporary integer in its current implementation.
yep.
Acked-by: Alexei Starovoitov <ast@...nel.org>
Powered by blists - more mailing lists