[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e679e494-ed27-7089-9b29-9e73bc98002f@gmail.com>
Date: Tue, 24 Dec 2019 09:40:41 -0700
From: David Ahern <dsahern@...il.com>
To: Ido Schimmel <idosch@...sch.org>, netdev@...r.kernel.org
Cc: davem@...emloft.net, roopa@...ulusnetworks.com,
jakub.kicinski@...ronome.com, jiri@...lanox.com,
Ido Schimmel <idosch@...lanox.com>
Subject: Re: [PATCH net-next 2/9] ipv6: Notify newly added route if should be
offloaded
On 12/23/19 6:28 AM, Ido Schimmel wrote:
> From: Ido Schimmel <idosch@...lanox.com>
>
> fib6_add_rt2node() takes care of adding a single route ('struct
> fib6_info') to a FIB node. The route in question should only be notified
> in case it is added as the first route in the node (lowest metric) or if
> it is added as a sibling route to the first route in the node.
>
> The first criterion can be tested by checking if the route is pointed to
> by 'fn->leaf'. The second criterion can be tested by checking the new
> 'notify_sibling_rt' variable that is set when the route is added as a
> sibling to the first route in the node.
>
> Signed-off-by: Ido Schimmel <idosch@...lanox.com>
> Reviewed-by: Jiri Pirko <jiri@...lanox.com>
> ---
> net/ipv6/ip6_fib.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
Reviewed-by: David Ahern <dsahern@...il.com>
Powered by blists - more mailing lists