Lines Matching refs:encap
29 /* bpf_skb_set_fou_encap - Set FOU encap parameters
39 * @encap Pointer to a `struct bpf_fou_encap` storing UDP src and
41 * port. This is similar to using `encap-sport auto`.
47 struct bpf_fou_encap *encap, int type)
52 if (unlikely(!encap))
60 info->encap.type = TUNNEL_ENCAP_FOU;
63 info->encap.type = TUNNEL_ENCAP_GUE;
66 info->encap.type = TUNNEL_ENCAP_NONE;
70 info->encap.flags |= TUNNEL_ENCAP_FLAG_CSUM;
72 info->encap.sport = encap->sport;
73 info->encap.dport = encap->dport;
78 /* bpf_skb_get_fou_encap - Get FOU encap parameters
80 * This function allows for reading encap metadata from a packet received
85 * @encap Pointer to a struct bpf_fou_encap storing UDP source and
89 struct bpf_fou_encap *encap)
97 encap->sport = info->encap.sport;
98 encap->dport = info->encap.dport;