1 /* SPDX-License-Identifier: GPL-2.0 */
3 * MCTP per-net structures
6 #ifndef __NETNS_MCTP_H__
7 #define __NETNS_MCTP_H__
9 #include <linux/types.h>
12 /* Only updated under RTNL, entries freed via RCU */
13 struct list_head routes;
15 /* Bound sockets: list of sockets bound by type.
16 * This list is updated from non-atomic contexts (under bind_lock),
17 * and read (under rcu) in packet rx
19 struct mutex bind_lock;
20 struct hlist_head binds;
22 /* tag allocations. This list is read and updated from atomic contexts,
23 * but elements are free()ed after a RCU grace-period
26 struct hlist_head keys;
29 unsigned int default_net;
32 struct mutex neigh_lock;
33 struct list_head neighbours;
36 #endif /* __NETNS_MCTP_H__ */