lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 20 Jan 2021 21:27:40 -0700 From: David Ahern <dsahern@...il.com> To: Petr Machata <petrm@...dia.com>, netdev@...r.kernel.org Cc: David Ahern <dsahern@...nel.org>, "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>, Ido Schimmel <idosch@...dia.com> Subject: Re: [PATCH net-next v2 2/3] nexthop: Use a dedicated policy for nh_valid_dump_req() On 1/20/21 8:44 AM, Petr Machata wrote: > This function uses the global nexthop policy, but only accepts four > particular attributes. Create a new policy that only includes the four > supported attributes, and use it. Convert the loop to a series of ifs. > > Signed-off-by: Petr Machata <petrm@...dia.com> > --- > > Notes: > v2: > - Do not specify size of the policy array. Use ARRAY_SIZE instead > of NHA_MAX > - Convert manual setting of true to nla_get_flag(). > > net/ipv4/nexthop.c | 60 +++++++++++++++++++++------------------------- > 1 file changed, 27 insertions(+), 33 deletions(-) > Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists