aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/seg6_local.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/seg6_local.h b/include/net/seg6_local.h
index 57498b23085d..661fd5b4d3e0 100644
--- a/include/net/seg6_local.h
+++ b/include/net/seg6_local.h
@@ -15,10 +15,18 @@
15#ifndef _NET_SEG6_LOCAL_H 15#ifndef _NET_SEG6_LOCAL_H
16#define _NET_SEG6_LOCAL_H 16#define _NET_SEG6_LOCAL_H
17 17
18#include <linux/percpu.h>
18#include <linux/net.h> 19#include <linux/net.h>
19#include <linux/ipv6.h> 20#include <linux/ipv6.h>
20 21
21extern int seg6_lookup_nexthop(struct sk_buff *skb, struct in6_addr *nhaddr, 22extern int seg6_lookup_nexthop(struct sk_buff *skb, struct in6_addr *nhaddr,
22 u32 tbl_id); 23 u32 tbl_id);
23 24
25struct seg6_bpf_srh_state {
26 bool valid;
27 u16 hdrlen;
28};
29
30DECLARE_PER_CPU(struct seg6_bpf_srh_state, seg6_bpf_srh_states);
31
24#endif 32#endif