mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-05 17:30:15 +08:00
sync: auto-generate latest BPF helpers
Latest changes to BPF helper definitions. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
1 parent
a205255dda
commit
afda97acd0
1 file changed
+9
-7
@@ -3705,17 +3705,19 @@ static void *(* const bpf_this_cpu_ptr)(const void *percpu_ptr) = (void *) 154;
|
||||
*
|
||||
* Redirect the packet to another net device of index *ifindex*.
|
||||
* This helper is somewhat similar to **bpf_redirect**\ (), except
|
||||
* that the redirection happens to the *ifindex*' peer device and
|
||||
* the netns switch takes place from ingress to ingress without
|
||||
* going through the CPU's backlog queue.
|
||||
* that the redirection happens to the *ifindex*' peer device. If
|
||||
* *flags* is 0, the netns switch takes place from ingress to
|
||||
* ingress without going through the CPU's backlog queue. If the
|
||||
* **BPF_F_EGRESS** flag is provided then redirection happens in
|
||||
* the egress direction of the peer device.
|
||||
*
|
||||
* *skb*\ **->mark** and *skb*\ **->tstamp** are not cleared during
|
||||
* the netns switch.
|
||||
*
|
||||
* The *flags* argument is reserved and must be 0. The helper is
|
||||
* currently only supported for tc BPF program types at the
|
||||
* ingress hook and for veth and netkit target device types. The
|
||||
* peer device must reside in a different network namespace.
|
||||
* If the *flags* argument is 0, the helper is currently only
|
||||
* supported for tc BPF program types at the ingress hook and for
|
||||
* veth and netkit target device types. The peer device must reside
|
||||
* in a different network namespace.
|
||||
*
|
||||
* Returns
|
||||
* The helper returns **TC_ACT_REDIRECT** on success or
|
||||
|
||||
Reference in new issue
Block a user