1 /* SPDX-License-Identifier: GPL-2.0 */
3 * nexthops in net namespaces
6 #ifndef __NETNS_NEXTHOP_H__
7 #define __NETNS_NEXTHOP_H__
9 #include <linux/notifier.h>
10 #include <linux/rbtree.h>
12 struct netns_nexthop
{
13 struct rb_root rb_root
; /* tree of nexthops by id */
14 struct hlist_head
*devhash
; /* nexthops by device */
16 unsigned int seq
; /* protected by rtnl_mutex */
17 u32 last_id_allocated
;
18 struct blocking_notifier_head notifier_chain
;