Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef776a27 authored by Martin KaFai Lau's avatar Martin KaFai Lau Committed by Alexei Starovoitov
Browse files

bpf: Sync bpf.h to tools/



This patch sync the uapi bpf.h to tools/.

Signed-off-by: default avatarMartin KaFai Lau <kafai@fb.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent dbafd7dd
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2366,6 +2366,14 @@ union bpf_attr {
 *             current value is ect (ECN capable). Works with IPv6 and IPv4.
 *     Return
 *             1 if set, 0 if not set.
 *
 * struct bpf_sock *bpf_get_listener_sock(struct bpf_sock *sk)
 *	Description
 *		Return a **struct bpf_sock** pointer in TCP_LISTEN state.
 *		bpf_sk_release() is unnecessary and not allowed.
 *	Return
 *		A **struct bpf_sock** pointer on success, or NULL in
 *		case of failure.
 */
#define __BPF_FUNC_MAPPER(FN)		\
	FN(unspec),			\
@@ -2465,7 +2473,8 @@ union bpf_attr {
	FN(spin_unlock),		\
	FN(sk_fullsock),		\
	FN(tcp_sock),			\
	FN(skb_ecn_set_ce),
	FN(skb_ecn_set_ce),		\
	FN(get_listener_sock),

/* integer value in 'imm' field of BPF_CALL instruction selects which helper
 * function eBPF program intends to call