summaryrefslogtreecommitdiffstats
path: root/tools/include
diff options
context:
space:
mode:
authorVadim Fedorenko <vadfed@meta.com>2024-06-06 16:58:50 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2024-06-13 14:29:47 +0200
commita3cfe84cca28f205761a0450016593b0d728165e (patch)
tree15b374e2476950553d60dc612cf7709bc1fc40d1 /tools/include
parentMerge branch 'bpf-support-dumping-kfunc-prototypes-from-btf' (diff)
downloadlinux-a3cfe84cca28f205761a0450016593b0d728165e.tar.xz
linux-a3cfe84cca28f205761a0450016593b0d728165e.zip
bpf: Add CHECKSUM_COMPLETE to bpf test progs
Add special flag to validate that TC BPF program properly updates checksum information in skb. Signed-off-by: Vadim Fedorenko <vadfed@meta.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20240606145851.229116-1-vadfed@meta.com
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/uapi/linux/bpf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 25ea393cf084..35bcf52dbc65 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -1425,6 +1425,8 @@ enum {
#define BPF_F_TEST_RUN_ON_CPU (1U << 0)
/* If set, XDP frames will be transmitted after processing */
#define BPF_F_TEST_XDP_LIVE_FRAMES (1U << 1)
+/* If set, apply CHECKSUM_COMPLETE to skb and validate the checksum */
+#define BPF_F_TEST_SKB_CHECKSUM_COMPLETE (1U << 2)
/* type for BPF_ENABLE_STATS */
enum bpf_stats_type {