mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-07 09:09:06 +08:00
bpf: sync bpf.h to tools and update bpf_helpers.h
This patch syncs the uapi bpf.h to tools/ and also updates bpf_herlpers.h in tools/ Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
@@ -2359,6 +2359,13 @@ union bpf_attr {
|
|||||||
* Return
|
* Return
|
||||||
* A **struct bpf_tcp_sock** pointer on success, or NULL in
|
* A **struct bpf_tcp_sock** pointer on success, or NULL in
|
||||||
* case of failure.
|
* case of failure.
|
||||||
|
*
|
||||||
|
* int bpf_skb_ecn_set_ce(struct sk_buf *skb)
|
||||||
|
* Description
|
||||||
|
* Sets ECN of IP header to ce (congestion encountered) if
|
||||||
|
* current value is ect (ECN capable). Works with IPv6 and IPv4.
|
||||||
|
* Return
|
||||||
|
* 1 if set, 0 if not set.
|
||||||
*/
|
*/
|
||||||
#define __BPF_FUNC_MAPPER(FN) \
|
#define __BPF_FUNC_MAPPER(FN) \
|
||||||
FN(unspec), \
|
FN(unspec), \
|
||||||
@@ -2457,7 +2464,8 @@ union bpf_attr {
|
|||||||
FN(spin_lock), \
|
FN(spin_lock), \
|
||||||
FN(spin_unlock), \
|
FN(spin_unlock), \
|
||||||
FN(sk_fullsock), \
|
FN(sk_fullsock), \
|
||||||
FN(tcp_sock),
|
FN(tcp_sock), \
|
||||||
|
FN(skb_ecn_set_ce),
|
||||||
|
|
||||||
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
|
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
|
||||||
* function eBPF program intends to call
|
* function eBPF program intends to call
|
||||||
|
|||||||
Reference in New Issue
Block a user