Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * nexthops in net namespaces
0004  */
0005 
0006 #ifndef __NETNS_NEXTHOP_H__
0007 #define __NETNS_NEXTHOP_H__
0008 
0009 #include <linux/notifier.h>
0010 #include <linux/rbtree.h>
0011 
0012 struct netns_nexthop {
0013     struct rb_root      rb_root;    /* tree of nexthops by id */
0014     struct hlist_head   *devhash;   /* nexthops by device */
0015 
0016     unsigned int        seq;        /* protected by rtnl_mutex */
0017     u32         last_id_allocated;
0018     struct blocking_notifier_head notifier_chain;
0019 };
0020 #endif