Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Ddecap_sanity.c34 struct sk_buff *kskb; in decap_sanity() local
54 kskb = bpf_cast_to_kern_ctx(skb); in decap_sanity()
55 init_csum_partial = (kskb->ip_summed == CHECKSUM_PARTIAL); in decap_sanity()
60 final_csum_none = (kskb->ip_summed == CHECKSUM_NONE); in decap_sanity()
61 if (kskb->ip_summed == CHECKSUM_PARTIAL && in decap_sanity()
62 (unsigned int)skb_checksum_start_offset(kskb) >= skb_headlen(kskb)) in decap_sanity()
H A Dtype_cast.c42 struct sk_buff *kskb = bpf_cast_to_kern_ctx(skb); in md_skb() local
46 kskb_len = kskb->len; in md_skb()
51 shared_info = bpf_rdonly_cast(kskb->head + kskb->end, in md_skb()
57 kskb2 = bpf_rdonly_cast(kskb, bpf_core_type_id_kernel(struct sk_buff)); in md_skb()