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)
commit56ad5ba344dea9c914331da8754f5ba7cede9941
treecf612dd0572826f8df4690c7d9eeb37ea07adc17
parent7c37c7e00411b3d1e0c5292368317aca69d1f324
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