mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-04 23:59:07 +08:00
sync: auto-generate latest BPF helpers
Latest changes to BPF helper definitions.
This commit is contained in:
committed by
Andrii Nakryiko
parent
f754860e35
commit
475ee87969
@@ -3541,9 +3541,13 @@ static __u64 (*bpf_skb_cgroup_classid)(struct __sk_buff *skb) = (void *) 151;
|
|||||||
* and fill in L2 addresses from neighboring subsystem. This helper
|
* and fill in L2 addresses from neighboring subsystem. This helper
|
||||||
* is somewhat similar to **bpf_redirect**\ (), except that it
|
* is somewhat similar to **bpf_redirect**\ (), except that it
|
||||||
* populates L2 addresses as well, meaning, internally, the helper
|
* populates L2 addresses as well, meaning, internally, the helper
|
||||||
* performs a FIB lookup based on the skb's networking header to
|
* relies on the neighbor lookup for the L2 address of the nexthop.
|
||||||
* get the address of the next hop and then relies on the neighbor
|
*
|
||||||
* lookup for the L2 address of the nexthop.
|
* The helper will perform a FIB lookup based on the skb's
|
||||||
|
* networking header to get the address of the next hop, unless
|
||||||
|
* this is supplied by the caller in the *params* argument. The
|
||||||
|
* *plen* argument indicates the len of *params* and should be set
|
||||||
|
* to 0 if *params* is NULL.
|
||||||
*
|
*
|
||||||
* 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, and enabled
|
* currently only supported for tc BPF program types, and enabled
|
||||||
@@ -3553,7 +3557,7 @@ static __u64 (*bpf_skb_cgroup_classid)(struct __sk_buff *skb) = (void *) 151;
|
|||||||
* The helper returns **TC_ACT_REDIRECT** on success or
|
* The helper returns **TC_ACT_REDIRECT** on success or
|
||||||
* **TC_ACT_SHOT** on error.
|
* **TC_ACT_SHOT** on error.
|
||||||
*/
|
*/
|
||||||
static long (*bpf_redirect_neigh)(__u32 ifindex, __u64 flags) = (void *) 152;
|
static long (*bpf_redirect_neigh)(__u32 ifindex, struct bpf_redir_neigh *params, int plen, __u64 flags) = (void *) 152;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bpf_per_cpu_ptr
|
* bpf_per_cpu_ptr
|
||||||
|
|||||||
Reference in New Issue
Block a user