blob: 7b56764d6f9c41a89869dcc0b7b8cc9e80a4f41f [file] [log] [blame]
Christopher Ferris82d75042015-01-26 10:57:07 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__LINUX_BPF_H__
20#define _UAPI__LINUX_BPF_H__
21#include <linux/types.h>
22#include <linux/bpf_common.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define BPF_ALU64 0x07
25#define BPF_DW 0x18
26#define BPF_XADD 0xc0
27#define BPF_MOV 0xb0
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define BPF_ARSH 0xc0
30#define BPF_END 0xd0
31#define BPF_TO_LE 0x00
32#define BPF_TO_BE 0x08
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define BPF_FROM_LE BPF_TO_LE
35#define BPF_FROM_BE BPF_TO_BE
36#define BPF_JNE 0x50
37#define BPF_JSGT 0x60
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define BPF_JSGE 0x70
40#define BPF_CALL 0x80
41#define BPF_EXIT 0x90
42enum {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 BPF_REG_0 = 0,
45 BPF_REG_1,
46 BPF_REG_2,
47 BPF_REG_3,
Christopher Ferris82d75042015-01-26 10:57:07 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 BPF_REG_4,
50 BPF_REG_5,
51 BPF_REG_6,
52 BPF_REG_7,
Christopher Ferris82d75042015-01-26 10:57:07 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 BPF_REG_8,
55 BPF_REG_9,
56 BPF_REG_10,
57 __MAX_BPF_REG,
Christopher Ferris82d75042015-01-26 10:57:07 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60#define MAX_BPF_REG __MAX_BPF_REG
61struct bpf_insn {
Tao Baod7db5942015-01-28 10:07:51 -080062 __u8 code;
Christopher Ferris82d75042015-01-26 10:57:07 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u8 dst_reg : 4;
65 __u8 src_reg : 4;
66 __s16 off;
67 __s32 imm;
Christopher Ferris82d75042015-01-26 10:57:07 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70enum bpf_cmd {
Tao Baod7db5942015-01-28 10:07:51 -080071 BPF_MAP_CREATE,
72 BPF_MAP_LOOKUP_ELEM,
Christopher Ferris82d75042015-01-26 10:57:07 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 BPF_MAP_UPDATE_ELEM,
75 BPF_MAP_DELETE_ELEM,
76 BPF_MAP_GET_NEXT_KEY,
77 BPF_PROG_LOAD,
Christopher Ferris82d75042015-01-26 10:57:07 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079 BPF_OBJ_PIN,
80 BPF_OBJ_GET,
Christopher Ferris82d75042015-01-26 10:57:07 -080081};
82enum bpf_map_type {
Christopher Ferris82d75042015-01-26 10:57:07 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084 BPF_MAP_TYPE_UNSPEC,
85 BPF_MAP_TYPE_HASH,
86 BPF_MAP_TYPE_ARRAY,
87 BPF_MAP_TYPE_PROG_ARRAY,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 BPF_MAP_TYPE_PERF_EVENT_ARRAY,
Christopher Ferris106b3a82016-08-24 12:15:38 -070090 BPF_MAP_TYPE_PERCPU_HASH,
91 BPF_MAP_TYPE_PERCPU_ARRAY,
92 BPF_MAP_TYPE_STACK_TRACE,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080094 BPF_MAP_TYPE_CGROUP_ARRAY,
Christopher Ferris05d08e92016-02-04 13:16:38 -080095};
Christopher Ferris82d75042015-01-26 10:57:07 -080096enum bpf_prog_type {
Tao Baod7db5942015-01-28 10:07:51 -080097 BPF_PROG_TYPE_UNSPEC,
Christopher Ferris106b3a82016-08-24 12:15:38 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080099 BPF_PROG_TYPE_SOCKET_FILTER,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800100 BPF_PROG_TYPE_KPROBE,
101 BPF_PROG_TYPE_SCHED_CLS,
102 BPF_PROG_TYPE_SCHED_ACT,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800104 BPF_PROG_TYPE_TRACEPOINT,
105 BPF_PROG_TYPE_XDP,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800106 BPF_PROG_TYPE_PERF_EVENT,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800107};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800109#define BPF_PSEUDO_MAP_FD 1
Christopher Ferris05d08e92016-02-04 13:16:38 -0800110#define BPF_ANY 0
111#define BPF_NOEXIST 1
Christopher Ferris05d08e92016-02-04 13:16:38 -0800112#define BPF_EXIST 2
Christopher Ferris49f525c2016-12-12 14:55:36 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800114#define BPF_F_NO_PREALLOC (1U << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800115union bpf_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800116 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700117 __u32 map_type;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800119 __u32 key_size;
Tao Baod7db5942015-01-28 10:07:51 -0800120 __u32 value_size;
Tao Baod7db5942015-01-28 10:07:51 -0800121 __u32 max_entries;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700122 __u32 map_flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800124 };
Tao Baod7db5942015-01-28 10:07:51 -0800125 struct {
126 __u32 map_fd;
Tao Baod7db5942015-01-28 10:07:51 -0800127 __aligned_u64 key;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800129 union {
Tao Baod7db5942015-01-28 10:07:51 -0800130 __aligned_u64 value;
131 __aligned_u64 next_key;
Tao Baod7db5942015-01-28 10:07:51 -0800132 };
Christopher Ferris49f525c2016-12-12 14:55:36 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800134 __u64 flags;
Tao Baod7db5942015-01-28 10:07:51 -0800135 };
136 struct {
137 __u32 prog_type;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800139 __u32 insn_cnt;
Tao Baod7db5942015-01-28 10:07:51 -0800140 __aligned_u64 insns;
141 __aligned_u64 license;
142 __u32 log_level;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800144 __u32 log_size;
Tao Baod7db5942015-01-28 10:07:51 -0800145 __aligned_u64 log_buf;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800146 __u32 kern_version;
147 };
Christopher Ferris49f525c2016-12-12 14:55:36 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800149 struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800150 __aligned_u64 pathname;
151 __u32 bpf_fd;
Tao Baod7db5942015-01-28 10:07:51 -0800152 };
Christopher Ferris49f525c2016-12-12 14:55:36 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800154} __attribute__((aligned(8)));
Christopher Ferris82d75042015-01-26 10:57:07 -0800155enum bpf_func_id {
Tao Baod7db5942015-01-28 10:07:51 -0800156 BPF_FUNC_unspec,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800157 BPF_FUNC_map_lookup_elem,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800159 BPF_FUNC_map_update_elem,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800160 BPF_FUNC_map_delete_elem,
161 BPF_FUNC_probe_read,
162 BPF_FUNC_ktime_get_ns,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800164 BPF_FUNC_trace_printk,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800165 BPF_FUNC_get_prandom_u32,
166 BPF_FUNC_get_smp_processor_id,
167 BPF_FUNC_skb_store_bytes,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800169 BPF_FUNC_l3_csum_replace,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800170 BPF_FUNC_l4_csum_replace,
171 BPF_FUNC_tail_call,
172 BPF_FUNC_clone_redirect,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800174 BPF_FUNC_get_current_pid_tgid,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800175 BPF_FUNC_get_current_uid_gid,
176 BPF_FUNC_get_current_comm,
177 BPF_FUNC_get_cgroup_classid,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800179 BPF_FUNC_skb_vlan_push,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800180 BPF_FUNC_skb_vlan_pop,
181 BPF_FUNC_skb_get_tunnel_key,
182 BPF_FUNC_skb_set_tunnel_key,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800184 BPF_FUNC_perf_event_read,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800185 BPF_FUNC_redirect,
186 BPF_FUNC_get_route_realm,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700187 BPF_FUNC_perf_event_output,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800189 BPF_FUNC_skb_load_bytes,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700190 BPF_FUNC_get_stackid,
191 BPF_FUNC_csum_diff,
Christopher Ferris106b3a82016-08-24 12:15:38 -0700192 BPF_FUNC_skb_get_tunnel_opt,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800194 BPF_FUNC_skb_set_tunnel_opt,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800195 BPF_FUNC_skb_change_proto,
196 BPF_FUNC_skb_change_type,
197 BPF_FUNC_skb_under_cgroup,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199 BPF_FUNC_get_hash_recalc,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800200 BPF_FUNC_get_current_task,
201 BPF_FUNC_probe_write_user,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800202 BPF_FUNC_current_task_under_cgroup,
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 BPF_FUNC_skb_change_tail,
205 BPF_FUNC_skb_pull_data,
206 BPF_FUNC_csum_update,
207 BPF_FUNC_set_hash_invalid,
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700209 __BPF_FUNC_MAX_ID,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800210};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700211#define BPF_F_RECOMPUTE_CSUM (1ULL << 0)
212#define BPF_F_INVALIDATE_HASH (1ULL << 1)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700214#define BPF_F_HDR_FIELD_MASK 0xfULL
215#define BPF_F_PSEUDO_HDR (1ULL << 4)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700216#define BPF_F_MARK_MANGLED_0 (1ULL << 5)
217#define BPF_F_INGRESS (1ULL << 0)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700219#define BPF_F_TUNINFO_IPV6 (1ULL << 0)
220#define BPF_F_SKIP_FIELD_MASK 0xffULL
Christopher Ferris106b3a82016-08-24 12:15:38 -0700221#define BPF_F_USER_STACK (1ULL << 8)
222#define BPF_F_FAST_STACK_CMP (1ULL << 9)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700224#define BPF_F_REUSE_STACKID (1ULL << 10)
225#define BPF_F_ZERO_CSUM_TX (1ULL << 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700226#define BPF_F_DONT_FRAGMENT (1ULL << 2)
227#define BPF_F_INDEX_MASK 0xffffffffULL
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700229#define BPF_F_CURRENT_CPU BPF_F_INDEX_MASK
Christopher Ferris49f525c2016-12-12 14:55:36 -0800230#define BPF_F_CTXLEN_MASK (0xfffffULL << 32)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800231struct __sk_buff {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800232 __u32 len;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800234 __u32 pkt_type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800235 __u32 mark;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800236 __u32 queue_mapping;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800237 __u32 protocol;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800239 __u32 vlan_present;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800240 __u32 vlan_tci;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800241 __u32 vlan_proto;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800242 __u32 priority;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800244 __u32 ingress_ifindex;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800245 __u32 ifindex;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800246 __u32 tc_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800247 __u32 cb[5];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800249 __u32 hash;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800250 __u32 tc_classid;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800251 __u32 data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700252 __u32 data_end;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800254};
255struct bpf_tunnel_key {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800256 __u32 tunnel_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700257 union {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700259 __u32 remote_ipv4;
260 __u32 remote_ipv6[4];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800261 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700262 __u8 tunnel_tos;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700264 __u8 tunnel_ttl;
265 __u16 tunnel_ext;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800266 __u32 tunnel_label;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800267};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800269enum xdp_action {
270 XDP_ABORTED = 0,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800271 XDP_DROP,
272 XDP_PASS,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800274 XDP_TX,
275};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800276struct xdp_md {
277 __u32 data;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800279 __u32 data_end;
280};
Christopher Ferris82d75042015-01-26 10:57:07 -0800281#endif