Home
last modified time | relevance | path

Searched refs:skb_ptr (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline_dynptr.c242 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6()
249 ip6h = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6()
290 udp = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_udp()
310 tcp = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_tcp()
327 static __noinline int process_packet(struct bpf_dynptr *skb_ptr, in process_packet() argument
354 ip6h = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in process_packet()
366 action = parse_icmpv6(skb_ptr, off, &pckt); in process_packet()
377 iph = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in process_packet()
389 action = parse_icmp(skb_ptr, off, &pckt); in process_packet()
401 if (!parse_tcp(skb_ptr, off, &pckt)) in process_packet()
[all …]
/openbmc/linux/drivers/net/ethernet/rdc/
H A Dr6040.c339 desc->skb_ptr = skb; in r6040_alloc_rxbufs()
550 skb_ptr = descptr->skb_ptr; in r6040_rx()
551 skb_ptr->dev = priv->dev; in r6040_rx()
557 skb_ptr->protocol = eth_type_trans(skb_ptr, priv->dev); in r6040_rx()
560 netif_receive_skb(skb_ptr); in r6040_rx()
565 descptr->skb_ptr = new_skb; in r6040_rx()
587 struct sk_buff *skb_ptr; in r6040_tx() local
603 skb_ptr = descptr->skb_ptr; in r6040_tx()
612 dev_kfree_skb(skb_ptr); in r6040_tx()
613 descptr->skb_ptr = NULL; in r6040_tx()
[all …]