aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r--include/uapi/linux/bpf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 1878201c2d77..102718624d1e 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -296,6 +296,11 @@ union bpf_attr {
296 __u32 prog_flags; 296 __u32 prog_flags;
297 char prog_name[BPF_OBJ_NAME_LEN]; 297 char prog_name[BPF_OBJ_NAME_LEN];
298 __u32 prog_ifindex; /* ifindex of netdev to prep for */ 298 __u32 prog_ifindex; /* ifindex of netdev to prep for */
299 /* For some prog types expected attach type must be known at
300 * load time to verify attach type specific parts of prog
301 * (context accesses, allowed helpers, etc).
302 */
303 __u32 expected_attach_type;
299 }; 304 };
300 305
301 struct { /* anonymous struct used by BPF_OBJ_* commands */ 306 struct { /* anonymous struct used by BPF_OBJ_* commands */