Searched refs:load_byte (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | bpf_legacy.h | 10 #define load_byte(skb, off) __builtin_bpf_load_byte(off) macro 17 unsigned long long load_byte(void *skb, unsigned long long off) asm("llvm.bpf.load.byte");
|
/openbmc/linux/samples/bpf/ |
H A D | parse_ldabs.c | 34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || in handle_ingress() 35 load_byte(skb, ETH_HLEN) != 0x45) in handle_ingress()
|
H A D | sockex3_kern.c | 171 ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in bpf_func_ip() 178 verlen = load_byte(skb, nhoff + 0/*offsetof(struct iphdr, ihl)*/); in bpf_func_ip() 197 ip_proto = load_byte(skb, in bpf_func_ipv6() 239 __u8 verlen = load_byte(skb, nhoff); in bpf_func_mpls()
|
H A D | tcbpf1_kern.c | 26 __u8 old_tos = load_byte(skb, TOS_OFF); in set_ip_tos() 58 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
H A D | sockex2_kern.c | 70 *ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in parse_ip() 77 verlen = load_byte(skb, nhoff + 0/*offsetof(struct iphdr, ihl)*/); in parse_ip() 89 *ip_proto = load_byte(skb, in parse_ipv6()
|
H A D | sockex1_kern.c | 18 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | tailcall_bpf2bpf2.c | 16 if (load_byte(skb, 0)) in subprog_tail()
|