[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fd1452a4-c0db-5f02-8e91-cde08333b6d7@gmail.com>
Date: Wed, 20 Jan 2021 21:26:02 -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 1/3] nexthop: Use a dedicated policy for
nh_valid_get_del_req()
On 1/20/21 8:44 AM, Petr Machata wrote:
> This function uses the global nexthop policy only to then bounce all
> arguments except for NHA_ID. Instead, just create a new policy that
> only includes the one allowed attribute.
>
> 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
>
> net/ipv4/nexthop.c | 26 +++++++++-----------------
> 1 file changed, 9 insertions(+), 17 deletions(-)
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists