]> git.baikalelectronics.ru Git - kernel.git/commit
nexthop: Allow setting "offload" and "trap" indication of nexthop buckets
authorIdo Schimmel <idosch@nvidia.com>
Thu, 11 Mar 2021 18:03:19 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:12:59 +0000 (16:12 -0800)
commit97d5fc58d54a4f5b80c88721fd325cfd617be61b
treecf612dd0572826f8df4690c7d9eeb37ea07adc17
parentae84bd42b8a5c33f524bc1f4787878183ce05eeb
nexthop: Allow setting "offload" and "trap" indication of nexthop buckets

Add a function that can be called by device drivers to set "offload" or
"trap" indication on nexthop buckets following nexthop notifications and
other changes such as a neighbour becoming invalid.

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