mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 04:37:57 +07:00
80690ec6b5
Currently, the only listener of the nexthop notification chain is the VXLAN driver. Subsequent patches will add more listeners (e.g., device drivers such as netdevsim) that need to be able to block when processing notifications. Therefore, convert the notification chain to a blocking one. This is safe as notifications are always emitted from process context. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
20 lines
428 B
C
20 lines
428 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 blocking_notifier_head notifier_chain;
|
|
};
|
|
#endif
|