nexthop.h 456 B

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