diff options
author | Roopa Prabhu <roopa@cumulusnetworks.com> | 2020-05-21 22:26:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-22 14:00:38 -0700 |
commit | 8590ceedb70181ad9de5a3dc2cfe50ca33a9576a (patch) | |
tree | 5d5482f0ba9d5b738c13663e5e82fd7ad6e02bbe /include/net/netns/nexthop.h | |
parent | 1274e1cc42264d4e629841e4f182795cb0becfd2 (diff) | |
download | linux-stable-8590ceedb70181ad9de5a3dc2cfe50ca33a9576a.tar.gz linux-stable-8590ceedb70181ad9de5a3dc2cfe50ca33a9576a.tar.bz2 linux-stable-8590ceedb70181ad9de5a3dc2cfe50ca33a9576a.zip |
nexthop: add support for notifiers
This patch adds nexthop add/del notifiers. To be used by
vxlan driver in a later patch. Could possibly be used by
switchdev drivers in the future.
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/nexthop.h')
-rw-r--r-- | include/net/netns/nexthop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/nexthop.h b/include/net/netns/nexthop.h index c712ee5eebd9..1937476c94a0 100644 --- a/include/net/netns/nexthop.h +++ b/include/net/netns/nexthop.h @@ -14,5 +14,6 @@ struct netns_nexthop { unsigned int seq; /* protected by rtnl_mutex */ u32 last_id_allocated; + struct atomic_notifier_head notifier_chain; }; #endif |