Home
last modified time | relevance | path

Searched refs:pckt (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_l4lb.c205 static __always_inline __u32 get_packet_hash(struct packet_description *pckt, in get_packet_hash() argument
209 return jhash_2words(jhash(pckt->srcv6, 16, MAX_VIPS), in get_packet_hash()
210 pckt->ports, CH_RINGS_SIZE); in get_packet_hash()
212 return jhash_2words(pckt->src, pckt->ports, CH_RINGS_SIZE); in get_packet_hash()
216 struct packet_description *pckt, in get_packet_dst() argument
220 __u32 hash = get_packet_hash(pckt, is_ipv6) % RING_SIZE; in get_packet_dst()
235 struct packet_description *pckt) in parse_icmpv6() argument
249 pckt->proto = ip6h->nexthdr; in parse_icmpv6()
250 pckt->flags |= F_ICMP; in parse_icmpv6()
251 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6()
[all …]
Dtest_l4lb_noinline.c201 static __noinline __u32 get_packet_hash(struct packet_description *pckt, bool ipv6) in get_packet_hash() argument
204 return jhash_2words(jhash(pckt->srcv6, 16, MAX_VIPS), in get_packet_hash()
205 pckt->ports, CH_RINGS_SIZE); in get_packet_hash()
207 return jhash_2words(pckt->src, pckt->ports, CH_RINGS_SIZE); in get_packet_hash()
211 struct packet_description *pckt, in get_packet_dst() argument
215 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst()
234 struct packet_description *pckt) in parse_icmpv6() argument
248 pckt->proto = ip6h->nexthdr; in parse_icmpv6()
249 pckt->flags |= F_ICMP; in parse_icmpv6()
250 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6()
[all …]
Dtest_xdp_noinline.c233 bool is_ipv6, struct packet_description *pckt) in parse_udp() argument
236 bool is_icmp = !((pckt->flags & (1 << 0)) == 0); in parse_udp()
244 pckt->flow.port16[0] = udp->source; in parse_udp()
245 pckt->flow.port16[1] = udp->dest; in parse_udp()
247 pckt->flow.port16[0] = udp->dest; in parse_udp()
248 pckt->flow.port16[1] = udp->source; in parse_udp()
255 bool is_ipv6, struct packet_description *pckt) in parse_tcp() argument
258 bool is_icmp = !((pckt->flags & (1 << 0)) == 0); in parse_tcp()
266 pckt->flags |= (1 << 1); in parse_tcp()
268 pckt->flow.port16[0] = tcp->source; in parse_tcp()
[all …]
Dtest_l4lb_noinline_dynptr.c203 static __noinline __u32 get_packet_hash(struct packet_description *pckt, bool ipv6) in get_packet_hash() argument
206 return jhash_2words(jhash(pckt->srcv6, 16, MAX_VIPS), in get_packet_hash()
207 pckt->ports, CH_RINGS_SIZE); in get_packet_hash()
209 return jhash_2words(pckt->src, pckt->ports, CH_RINGS_SIZE); in get_packet_hash()
213 struct packet_description *pckt, in get_packet_dst() argument
217 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst()
236 struct packet_description *pckt) in parse_icmpv6() argument
252 pckt->proto = ip6h->nexthdr; in parse_icmpv6()
253 pckt->flags |= F_ICMP; in parse_icmpv6()
254 memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); in parse_icmpv6()
[all …]