Searched refs:greh (Results 1 – 14 of 14) sorted by relevance
71 struct gre_base_hdr *greh; in gre_gso_segment() local140 hlen = off + sizeof(*greh); in gre_gro_receive()142 if (unlikely(!greh)) in gre_gro_receive()162 type = greh->protocol; in gre_gro_receive()170 if (greh->flags & GRE_KEY) in gre_gro_receive()173 if (greh->flags & GRE_CSUM) in gre_gro_receive()179 if (unlikely(!greh)) in gre_gro_receive()213 if (greh->flags & GRE_KEY) { in gre_gro_receive()247 type = greh->protocol; in gre_gro_complete()248 if (greh->flags & GRE_KEY) in gre_gro_complete()[all …]
65 const struct gre_base_hdr *greh; in gre_parse_header() local72 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()73 if (unlikely(greh->flags & (GRE_VERSION | GRE_ROUTING))) in gre_parse_header()76 gre_flags_to_tnl_flags(tpi->flags, greh->flags); in gre_parse_header()82 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()83 tpi->proto = greh->protocol; in gre_parse_header()85 options = (__be32 *)(greh + 1); in gre_parse_header()86 if (greh->flags & GRE_CSUM) { in gre_parse_header()98 if (greh->flags & GRE_KEY) { in gre_parse_header()104 if (unlikely(greh->flags & GRE_SEQ)) { in gre_parse_header()[all …]
889 struct gre_base_hdr *greh; in ipgre_header() local892 greh = (struct gre_base_hdr *)(iph+1); in ipgre_header()893 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); in ipgre_header()894 greh->protocol = htons(type); in ipgre_header()
107 struct gre_base_hdr *greh; in gre_build_header() local113 greh = (struct gre_base_hdr *)skb->data; in gre_build_header()114 greh->flags = gre_tnl_flags_to_gre_flags(flags); in gre_build_header()115 greh->protocol = proto; in gre_build_header()122 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); in gre_build_header()141 skb->csum_offset = sizeof(*greh); in gre_build_header()
20 struct grehdr greh; in bpf_lwt_encap_gre() member41 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre()56 struct grehdr greh; in bpf_lwt_encap_gre6() member75 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre6()
604 struct gre_hdr greh; in decap_internal() local632 if (bpf_skb_load_bytes(skb, off + len, &greh, sizeof(greh)) < 0) in decap_internal()634 switch (bpf_ntohs(greh.protocol)) { in decap_internal()
32 struct gre_base_hdr *greh = (struct gre_base_hdr *)(buf); in mlx5e_gen_ip_tunnel_header_gretap() local46 greh->protocol = htons(ETH_P_TEB); in mlx5e_gen_ip_tunnel_header_gretap()50 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags); in mlx5e_gen_ip_tunnel_header_gretap()52 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); in mlx5e_gen_ip_tunnel_header_gretap()
224 struct gre_base_hdr *greh; in nf_flow_tuple_ip() local226 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()227 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ip()624 struct gre_base_hdr *greh; in nf_flow_tuple_ipv6() local626 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ipv6()627 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ipv6()
284 const struct gre_base_hdr *greh; in gre_manip_pkt() local292 greh = (void *)skb->data + hdroff; in gre_manip_pkt()293 pgreh = (struct pptp_gre_header *)greh; in gre_manip_pkt()300 switch (greh->flags & GRE_VERSION) { in gre_manip_pkt()
564 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv4() local566 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv4()567 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv4()633 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv6() local635 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv6()636 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv6()
263 struct grehdr *greh = header; in build_gre_header() local265 greh->protocol = htons(proto); in build_gre_header()
1543 struct gre_base_hdr _greh, *greh; in ipvs_gre_decap() local1546 greh = skb_header_pointer(skb, offset, sizeof(_greh), &_greh); in ipvs_gre_decap()1547 if (!greh) in ipvs_gre_decap()1557 if ((greh->flags & ~GRE_CSUM) != 0) in ipvs_gre_decap()1559 type = greh->protocol; in ipvs_gre_decap()1565 gre_flags_to_tnl_flags(flags, greh->flags); in ipvs_gre_decap()
1303 struct gre_base_hdr *greh; in efx_can_encap_offloads() local1346 greh = (struct gre_base_hdr *)skb_transport_header(skb); in efx_can_encap_offloads()1347 return !(greh->flags & (GRE_CSUM | GRE_SEQ)); in efx_can_encap_offloads()
1291 struct gre_base_hdr *greh; in efx_can_encap_offloads() local1334 greh = (struct gre_base_hdr *)skb_transport_header(skb); in efx_can_encap_offloads()1335 return !(greh->flags & (GRE_CSUM | GRE_SEQ)); in efx_can_encap_offloads()
Completed in 30 milliseconds