1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * nexthops in net namespaces 3 * nexthops in net namespaces 4 */ 4 */ 5 5 6 #ifndef __NETNS_NEXTHOP_H__ 6 #ifndef __NETNS_NEXTHOP_H__ 7 #define __NETNS_NEXTHOP_H__ 7 #define __NETNS_NEXTHOP_H__ 8 8 9 #include <linux/notifier.h> << 10 #include <linux/rbtree.h> 9 #include <linux/rbtree.h> 11 10 12 struct netns_nexthop { 11 struct netns_nexthop { 13 struct rb_root rb_root; 12 struct rb_root rb_root; /* tree of nexthops by id */ 14 struct hlist_head *devhash; 13 struct hlist_head *devhash; /* nexthops by device */ 15 14 16 unsigned int seq; 15 unsigned int seq; /* protected by rtnl_mutex */ 17 u32 last_id_alloca 16 u32 last_id_allocated; 18 struct blocking_notifier_head notifier 17 struct blocking_notifier_head notifier_chain; 19 }; 18 }; 20 #endif 19 #endif 21 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.