mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 02:25:20 +07:00
8590ceedb7
This patch adds nexthop add/del notifiers. To be used by vxlan driver in a later patch. Could possibly be used by switchdev drivers in the future. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
20 lines
426 B
C
20 lines
426 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* nexthops in net namespaces
|
|
*/
|
|
|
|
#ifndef __NETNS_NEXTHOP_H__
|
|
#define __NETNS_NEXTHOP_H__
|
|
|
|
#include <linux/rbtree.h>
|
|
|
|
struct netns_nexthop {
|
|
struct rb_root rb_root; /* tree of nexthops by id */
|
|
struct hlist_head *devhash; /* nexthops by device */
|
|
|
|
unsigned int seq; /* protected by rtnl_mutex */
|
|
u32 last_id_allocated;
|
|
struct atomic_notifier_head notifier_chain;
|
|
};
|
|
#endif
|