Thread (11 messages) flat view 11 messages, 3 authors, 2019-08-27
STALE2561d REVIEWED: 3 (1M)

Revision v3 of 3 in this series; 3 review trailers.

Revisions (3)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 current

[PATCH bpf-next v3 4/7] tools/bpf: sync bpf_flow_keys flags

From: Stanislav Fomichev <hidden>
Date: 2019-07-25 22:52:46
Also in: bpf
Subsystem: the rest · Maintainer: Linus Torvalds

Export bpf_flow_keys flags to tools/libbpf/selftests.

Acked-by: Petar Penkov <redacted>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: Song Liu <redacted>
Cc: Song Liu <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Petar Penkov <redacted>
Signed-off-by: Stanislav Fomichev <redacted>
---
 tools/include/uapi/linux/bpf.h | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 4e455018da65..2e4b0848d795 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -3504,6 +3504,10 @@ enum bpf_task_fd_type {
 	BPF_FD_TYPE_URETPROBE,		/* filename + offset */
 };
 
+#define BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG		(1U << 0)
+#define BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL		(1U << 1)
+#define BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP		(1U << 2)
+
 struct bpf_flow_keys {
 	__u16	nhoff;
 	__u16	thoff;
@@ -3525,6 +3529,7 @@ struct bpf_flow_keys {
 			__u32	ipv6_dst[4];	/* in6_addr; network order */
 		};
 	};
+	__u32	flags;
 };
 
 struct bpf_func_info {
-- 
2.22.0.709.g102302147b-goog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help