[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <73839ca0-6e9b-de8f-bac5-96d94369c282@gmail.com>
Date: Wed, 20 Jan 2021 21:29:26 -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 3/3] nexthop: Specialize rtm_nh_policy
On 1/20/21 8:44 AM, Petr Machata wrote:
> This policy is currently only used for creation of new next hops and new
> next hop groups. Rename it accordingly and remove the two attributes that
> are not valid in that context: NHA_GROUPS and NHA_MASTER.
>
> For consistency with other policies, do not mention policy array size in
> the declarator, and replace NHA_MAX for ARRAY_SIZE as appropriate.
>
> Note that with this commit, NHA_MAX and __NHA_MAX are not used anymore.
> Leave them in purely as a user API.
>
> 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 | 23 +++++++++--------------
> 1 file changed, 9 insertions(+), 14 deletions(-)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists