mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-04 15:49:06 +08:00
sync: auto-generate latest BPF helpers
Latest changes to BPF helper definitions. Signed-off-by: Amery Hung <ameryhung@gmail.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
7356be641d
commit
f6284bb875
@@ -286,6 +286,7 @@ static long (* const bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, _
|
|||||||
* for updates resulting in a null checksum the value is set to
|
* for updates resulting in a null checksum the value is set to
|
||||||
* **CSUM_MANGLED_0** instead. Flag **BPF_F_PSEUDO_HDR** indicates
|
* **CSUM_MANGLED_0** instead. Flag **BPF_F_PSEUDO_HDR** indicates
|
||||||
* that the modified header field is part of the pseudo-header.
|
* that the modified header field is part of the pseudo-header.
|
||||||
|
* Flag **BPF_F_IPV6** should be set for IPv6 packets.
|
||||||
*
|
*
|
||||||
* This helper works in combination with **bpf_csum_diff**\ (),
|
* This helper works in combination with **bpf_csum_diff**\ (),
|
||||||
* which does not update the checksum in-place, but offers more
|
* which does not update the checksum in-place, but offers more
|
||||||
@@ -688,7 +689,7 @@ static __u32 (* const bpf_get_route_realm)(struct __sk_buff *skb) = (void *) 24;
|
|||||||
* into it. An example is available in file
|
* into it. An example is available in file
|
||||||
* *samples/bpf/trace_output_user.c* in the Linux kernel source
|
* *samples/bpf/trace_output_user.c* in the Linux kernel source
|
||||||
* tree (the eBPF program counterpart is in
|
* tree (the eBPF program counterpart is in
|
||||||
* *samples/bpf/trace_output_kern.c*).
|
* *samples/bpf/trace_output.bpf.c*).
|
||||||
*
|
*
|
||||||
* **bpf_perf_event_output**\ () achieves better performance
|
* **bpf_perf_event_output**\ () achieves better performance
|
||||||
* than **bpf_trace_printk**\ () for sharing data with user
|
* than **bpf_trace_printk**\ () for sharing data with user
|
||||||
@@ -3706,6 +3707,9 @@ static void *(* const bpf_this_cpu_ptr)(const void *percpu_ptr) = (void *) 154;
|
|||||||
* the netns switch takes place from ingress to ingress without
|
* the netns switch takes place from ingress to ingress without
|
||||||
* going through the CPU's backlog queue.
|
* going through the CPU's backlog queue.
|
||||||
*
|
*
|
||||||
|
* *skb*\ **->mark** and *skb*\ **->tstamp** are not cleared during
|
||||||
|
* the netns switch.
|
||||||
|
*
|
||||||
* The *flags* argument is reserved and must be 0. The helper is
|
* The *flags* argument is reserved and must be 0. The helper is
|
||||||
* currently only supported for tc BPF program types at the
|
* currently only supported for tc BPF program types at the
|
||||||
* ingress hook and for veth and netkit target device types. The
|
* ingress hook and for veth and netkit target device types. The
|
||||||
|
|||||||
Reference in New Issue
Block a user