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> 9 #include <linux/notifier.h> 10 #include <linux/rbtree.h> 10 #include <linux/rbtree.h> 11 11 12 struct netns_nexthop { 12 struct netns_nexthop { 13 struct rb_root rb_root; 13 struct rb_root rb_root; /* tree of nexthops by id */ 14 struct hlist_head *devhash; 14 struct hlist_head *devhash; /* nexthops by device */ 15 15 16 unsigned int seq; 16 unsigned int seq; /* protected by rtnl_mutex */ 17 u32 last_id_alloca 17 u32 last_id_allocated; 18 struct blocking_notifier_head notifier 18 struct blocking_notifier_head notifier_chain; 19 }; 19 }; 20 #endif 20 #endif 21 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.