| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * IPv6 IOAM implementation |
| * Justin Iurman <justin.iurman@uliege.be> |
| #include <linux/rhashtable-types.h> |
| struct ioam6_schema __rcu *schema; |
| struct ioam6_namespace __rcu *ns; |
| struct ioam6_pernet_data { |
| struct rhashtable namespaces; |
| struct rhashtable schemas; |
| static inline struct ioam6_pernet_data *ioam6_pernet(struct net *net) |
| #if IS_ENABLED(CONFIG_IPV6) |
| return net->ipv6.ioam6_data; |
| struct ioam6_namespace *ioam6_namespace(struct net *net, __be16 id); |
| void ioam6_fill_trace_data(struct sk_buff *skb, |
| struct ioam6_namespace *ns, |
| struct ioam6_trace_hdr *trace, |
| int ioam6_iptunnel_init(void); |
| void ioam6_iptunnel_exit(void); |
| #endif /* _NET_IOAM6_H */ |