From dacbc5a9e944ceb75c9acebc1a8c127a1d0efce9 Mon Sep 17 00:00:00 2001 From: bitcoffee Date: Tue, 13 Jun 2023 14:23:35 +0800 Subject: [PATCH] bpf: Introduces a new state to identify the location of the sockops call hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I71USM ----------------------------------------------------- Currently, a permission status code is required to identify that the access to the sockops is from the delayed link establishment scenario. Therefore, "BPF_SOCK_OPS_TCP_DEFFER_CONNECT_CB" Signed-off-by: bitcoffee --- include/uapi/linux/bpf.h | 1 + tools/include/uapi/linux/bpf.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 9e64dac44d60..79d5e5850bf6 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -4872,6 +4872,7 @@ enum { * by the kernel or the * earlier bpf-progs. */ + BPF_SOCK_OPS_TCP_DEFER_CONNECT_CB,/* call ebpf to defer connect*/ }; /* List of TCP states. There is a build check in net/ipv4/tcp.c to detect diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index abf8023d606b..807232f0c7e0 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -4872,6 +4872,7 @@ enum { * by the kernel or the * earlier bpf-progs. */ + BPF_SOCK_OPS_TCP_DEFER_CONNECT_CB,/* call ebpf to defer connect*/ }; /* List of TCP states. There is a build check in net/ipv4/tcp.c to detect -- GitLab