]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: update bpf.h
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 4 Feb 2025 14:59:30 +0000 (06:59 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 4 Feb 2025 14:59:30 +0000 (06:59 -0800)
Autogenerated from 6.14-rc1

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/bpf.h

index 5abdd4fb9522bdf3fa7da964d2b1952405cd68c8..535272c7b3124ecc9aca1479de101717360cfd07 100644 (file)
@@ -1573,6 +1573,16 @@ union bpf_attr {
                 * If provided, prog_flags should have BPF_F_TOKEN_FD flag set.
                 */
                __s32           prog_token_fd;
+               /* The fd_array_cnt can be used to pass the length of the
+                * fd_array array. In this case all the [map] file descriptors
+                * passed in this array will be bound to the program, even if
+                * the maps are not referenced directly. The functionality is
+                * similar to the BPF_PROG_BIND_MAP syscall, but maps can be
+                * used by the verifier during the program load. If provided,
+                * then the fd_array[0,...,fd_array_cnt-1] is expected to be
+                * continuous.
+                */
+               __u32           fd_array_cnt;
        };
 
        struct { /* anonymous struct used by BPF_OBJ_* commands */