Home
last modified time | relevance | path

Searched refs:load_half (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/samples/bpf/
H A Dsockex2_kern.c48 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
105 __u64 proto = load_half(skb, 12); in flow_dissector()
109 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
115 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
134 __u64 gre_flags = load_half(skb, in flow_dissector()
136 __u64 gre_proto = load_half(skb, in flow_dissector()
152 proto = load_half(skb, in flow_dissector()
H A Dparse_ldabs.c23 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP) in handle_ingress()
39 if (load_half(skb, troff + offsetof(struct udphdr, dest)) == DEFAULT_PKTGEN_UDP_PORT) in handle_ingress()
H A Dsockex3_kern.c44 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
119 __u32 gre_flags = load_half(skb, in parse_ip_proto()
121 __u32 gre_proto = load_half(skb, in parse_ip_proto()
217 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in bpf_func_vlan()
297 __u32 proto = load_half(skb, 12); in main_prog()
H A Dtcbpf1_kern.c49 __u16 old_port = htons(load_half(skb, TCP_DPORT_OFF)); in set_tcp_dest_port()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbpf_legacy.h11 #define load_half(skb, off) __builtin_bpf_load_half(off) macro
18 unsigned long long load_half(void *skb, unsigned long long off) asm("llvm.bpf.load.half");
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtailcall_bpf2bpf3.c19 if (load_word(skb, 0) || load_half(skb, 0)) in subprog_tail2()