diff options
author | Ido Schimmel <idosch@nvidia.com> | 2020-11-04 14:30:28 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-06 20:28:49 +0100 |
commit | e95f2592f633a334b175003f13f42d3c217dc657 (patch) | |
tree | 189ae551c4ad7d0b2d6558d268d404abe335ca73 /include/net/nexthop.h | |
parent | rtnetlink: Add RTNH_F_TRAP flag (diff) | |
download | linux-e95f2592f633a334b175003f13f42d3c217dc657.tar.xz linux-e95f2592f633a334b175003f13f42d3c217dc657.zip |
nexthop: Allow setting "offload" and "trap" indications on nexthops
Add a function that can be called by device drivers to set "offload" or
"trap" indication on nexthops following nexthop notifications.
Changes since RFC:
* s/nexthop_hw_flags_set/nexthop_set_hw_flags/
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/nexthop.h')
-rw-r--r-- | include/net/nexthop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/nexthop.h b/include/net/nexthop.h index 4a17b040b502..aa7ac12c35e2 100644 --- a/include/net/nexthop.h +++ b/include/net/nexthop.h @@ -145,6 +145,7 @@ struct nh_notifier_info { int register_nexthop_notifier(struct net *net, struct notifier_block *nb); int unregister_nexthop_notifier(struct net *net, struct notifier_block *nb); +void nexthop_set_hw_flags(struct net *net, u32 id, bool offload, bool trap); /* caller is holding rcu or rtnl; no reference taken to nexthop */ struct nexthop *nexthop_find_by_id(struct net *net, u32 id); |