tc, bpf: add new csum and tunnel signatures
Add new signatures for BPF_FUNC_csum_diff, BPF_FUNC_skb_get_tunnel_opt and BPF_FUNC_skb_set_tunnel_opt. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
5a2d0201cc
commit
0395711c52
|
|
@ -212,6 +212,8 @@ static int BPF_FUNC(l3_csum_replace, struct __sk_buff *skb, uint32_t off,
|
|||
uint32_t from, uint32_t to, uint32_t flags);
|
||||
static int BPF_FUNC(l4_csum_replace, struct __sk_buff *skb, uint32_t off,
|
||||
uint32_t from, uint32_t to, uint32_t flags);
|
||||
static int BPF_FUNC(csum_diff, const void *from, uint32_t from_size,
|
||||
const void *to, uint32_t to_size, uint32_t seed);
|
||||
|
||||
/* Packet vlan encap/decap */
|
||||
static int BPF_FUNC(skb_vlan_push, struct __sk_buff *skb, uint16_t proto,
|
||||
|
|
@ -225,6 +227,11 @@ static int BPF_FUNC(skb_set_tunnel_key, struct __sk_buff *skb,
|
|||
const struct bpf_tunnel_key *from, uint32_t size,
|
||||
uint32_t flags);
|
||||
|
||||
static int BPF_FUNC(skb_get_tunnel_opt, struct __sk_buff *skb,
|
||||
void *to, uint32_t size);
|
||||
static int BPF_FUNC(skb_set_tunnel_opt, struct __sk_buff *skb,
|
||||
const void *from, uint32_t size);
|
||||
|
||||
/** LLVM built-ins, mem*() routines work for constant size */
|
||||
|
||||
#ifndef lock_xadd
|
||||
|
|
|
|||
Loading…
Reference in New Issue