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