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>
This commit is contained in:

committed by
David S. Miller

parent
1274e1cc42
commit
8590ceedb7
@@ -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
|
||||
|
Reference in New Issue
Block a user