[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <83a89f6c-6ad3-2d7f-8f37-7910cb957ec2@gmail.com>
Date: Thu, 11 Mar 2021 09:04:33 -0700
From: David Ahern <dsahern@...il.com>
To: Petr Machata <petrm@...dia.com>, netdev@...r.kernel.org
Cc: Ido Schimmel <idosch@...dia.com>, David Ahern <dsahern@...nel.org>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Subject: Re: [PATCH net-next 09/14] nexthop: Allow reporting activity of
nexthop buckets
On 3/10/21 8:03 AM, Petr Machata wrote:
> From: Ido Schimmel <idosch@...dia.com>
>
> The kernel periodically checks the idle time of nexthop buckets to
> determine if they are idle and can be re-populated with a new nexthop.
>
> When the resilient nexthop group is offloaded to hardware, the kernel
> will not see activity on nexthop buckets unless it is reported from
> hardware.
>
> Add a function that can be periodically called by device drivers to
> report activity on nexthop buckets after querying it from the underlying
> device.
>
> Signed-off-by: Ido Schimmel <idosch@...dia.com>
> Reviewed-by: Petr Machata <petrm@...dia.com>
> Signed-off-by: Petr Machata <petrm@...dia.com>
> ---
>
> Notes:
> v1 (changes since RFC):
> - u32 -> u16 for bucket counts / indices
>
> include/net/nexthop.h | 2 ++
> net/ipv4/nexthop.c | 35 +++++++++++++++++++++++++++++++++++
> 2 files changed, 37 insertions(+)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists