Home
last modified time | relevance | path

Searched refs:load_byte (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/
H A Dbpf_legacy.h10 #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 Dparse_ldabs.c34 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 Dsockex3_kern.c171 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 Dtcbpf1_kern.c26 __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 Dsockex2_kern.c70 *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 Dsockex1_kern.c18 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtailcall_bpf2bpf2.c16 if (load_byte(skb, 0)) in subprog_tail()