[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a9616e0b-3c22-43ab-a8e3-42c239bc5441@redhat.com>
Date: Wed, 16 Apr 2025 10:54:03 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>,
"David S. Miller" <davem@...emloft.net>, David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>
Cc: Simon Horman <horms@...nel.org>, Kuniyuki Iwashima <kuni1840@...il.com>,
netdev@...r.kernel.org
Subject: Re: [PATCH RESEND v2 net-next 03/14] ipv6: Move some validation from
ip6_route_info_create() to rtm_to_fib6_config().
On 4/14/25 8:14 PM, Kuniyuki Iwashima wrote:
> ip6_route_info_create() is called from 3 functions:
>
> * ip6_route_add()
> * ip6_route_multipath_add()
> * addrconf_f6i_alloc()
>
> addrconf_f6i_alloc() does not need validation for struct fib6_config in
> ip6_route_info_create().
>
> ip6_route_multipath_add() calls ip6_route_info_create() for multiple
> routes with slightly different fib6_config instances, which is copied
> from the base config passed from userspace. So, we need not validate
> the same config repeatedly.
>
> Let's move such validation into rtm_to_fib6_config().
>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Acked-by: Paolo Abeni <pabeni@...hat.com>
Powered by blists - more mailing lists