]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/net/ioam6.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * IPv6 IOAM implementation
6 * Justin Iurman <justin.iurman@uliege.be>
12 #include <linux/net.h>
13 #include <linux/ipv6.h>
14 #include <linux/ioam6.h>
15 #include <linux/rhashtable-types.h>
17 struct ioam6_namespace
{
18 struct rhash_head head
;
21 struct ioam6_schema __rcu
*schema
;
29 struct rhash_head head
;
32 struct ioam6_namespace __rcu
*ns
;
41 struct ioam6_pernet_data
{
43 struct rhashtable namespaces
;
44 struct rhashtable schemas
;
47 static inline struct ioam6_pernet_data
*ioam6_pernet(struct net
*net
)
49 #if IS_ENABLED(CONFIG_IPV6)
50 return net
->ipv6
.ioam6_data
;
56 struct ioam6_namespace
*ioam6_namespace(struct net
*net
, __be16 id
);
57 void ioam6_fill_trace_data(struct sk_buff
*skb
,
58 struct ioam6_namespace
*ns
,
59 struct ioam6_trace_hdr
*trace
);
62 void ioam6_exit(void);
64 int ioam6_iptunnel_init(void);
65 void ioam6_iptunnel_exit(void);
67 #endif /* _NET_IOAM6_H */