Skip to content

Commit 57debff

Browse files
fomichevAlexei Starovoitov
authored andcommitted
tools/bpf: sync bpf_flow_keys flags
Export bpf_flow_keys flags to tools/libbpf/selftests. Acked-by: Petar Penkov <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Acked-by: Song Liu <[email protected]> Cc: Song Liu <[email protected]> Cc: Willem de Bruijn <[email protected]> Cc: Petar Penkov <[email protected]> Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent b2ca4e1 commit 57debff

File tree

1 file changed

+5
-0
lines changed
  • tools/include/uapi/linux

1 file changed

+5
-0
lines changed

tools/include/uapi/linux/bpf.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3504,6 +3504,10 @@ enum bpf_task_fd_type {
35043504
BPF_FD_TYPE_URETPROBE, /* filename + offset */
35053505
};
35063506

3507+
#define BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG (1U << 0)
3508+
#define BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL (1U << 1)
3509+
#define BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP (1U << 2)
3510+
35073511
struct bpf_flow_keys {
35083512
__u16 nhoff;
35093513
__u16 thoff;
@@ -3525,6 +3529,7 @@ struct bpf_flow_keys {
35253529
__u32 ipv6_dst[4]; /* in6_addr; network order */
35263530
};
35273531
};
3532+
__u32 flags;
35283533
};
35293534

35303535
struct bpf_func_info {

0 commit comments

Comments
 (0)