]> git.baikalelectronics.ru Git - kernel.git/commit
nexthop: Allow reporting activity of nexthop buckets
authorIdo Schimmel <idosch@nvidia.com>
Thu, 11 Mar 2021 18:03:20 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:13:00 +0000 (16:13 -0800)
commit10a5d5892966f0c177f2df69c2e500a032032111
tree8b672cf9fcc0e9f51c8d856366f7c3af587b55f5
parent6888b1820b9a1fd564bb218bfb1aa74297eb0efa
nexthop: Allow reporting activity of nexthop buckets

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@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/nexthop.h
net/ipv4/nexthop.c