/Linux-v6.1/net/ipv4/ |
D | gre_offload.c | 70 struct gre_base_hdr *greh; in gre_gso_segment() local 90 greh = (struct gre_base_hdr *)skb_transport_header(skb); in gre_gso_segment() 91 pcsum = (__sum16 *)(greh + 1); in gre_gso_segment() 114 skb->csum_offset = sizeof(*greh); in gre_gso_segment() 126 const struct gre_base_hdr *greh; in gre_gro_receive() local 139 hlen = off + sizeof(*greh); in gre_gro_receive() 140 greh = skb_gro_header(skb, hlen, off); in gre_gro_receive() 141 if (unlikely(!greh)) in gre_gro_receive() 150 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0) in gre_gro_receive() 158 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou) in gre_gro_receive() [all …]
|
D | gre_demux.c | 65 const struct gre_base_hdr *greh; in gre_parse_header() local 72 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 tpi->flags = gre_flags_to_tnl_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 …]
|
D | ip_gre.c | 850 struct gre_base_hdr *greh; in ipgre_header() local 853 greh = (struct gre_base_hdr *)(iph+1); in ipgre_header() 854 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); in ipgre_header() 855 greh->protocol = htons(type); in ipgre_header()
|
/Linux-v6.1/include/net/ |
D | gre.h | 113 struct gre_base_hdr *greh; in gre_build_header() local 119 greh = (struct gre_base_hdr *)skb->data; in gre_build_header() 120 greh->flags = gre_tnl_flags_to_gre_flags(flags); in gre_build_header() 121 greh->protocol = proto; in gre_build_header() 124 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); in gre_build_header() 143 skb->csum_offset = sizeof(*greh); in gre_build_header()
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | test_lwt_ip_encap.c | 20 struct grehdr greh; in bpf_lwt_encap_gre() member 41 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre() 56 struct grehdr greh; in bpf_lwt_encap_gre6() member 75 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre6()
|
D | test_tc_tunnel.c | 531 struct gre_hdr greh; in decap_internal() local 541 if (bpf_skb_load_bytes(skb, off + len, &greh, sizeof(greh)) < 0) in decap_internal() 543 switch (bpf_ntohs(greh.protocol)) { in decap_internal()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_gre.c | 32 struct gre_base_hdr *greh = (struct gre_base_hdr *)(buf); in mlx5e_gen_ip_tunnel_header_gretap() local 42 greh->protocol = htons(ETH_P_TEB); in mlx5e_gen_ip_tunnel_header_gretap() 46 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags); in mlx5e_gen_ip_tunnel_header_gretap() 48 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); in mlx5e_gen_ip_tunnel_header_gretap()
|
/Linux-v6.1/net/netfilter/ |
D | nf_flow_table_ip.c | 218 struct gre_base_hdr *greh; in nf_flow_tuple_ip() local 220 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip() 221 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ip() 580 struct gre_base_hdr *greh; in nf_flow_tuple_ipv6() local 582 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ipv6() 583 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ipv6()
|
D | nf_nat_proto.c | 284 const struct gre_base_hdr *greh; in gre_manip_pkt() local 292 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()
|
/Linux-v6.1/net/sched/ |
D | act_ct.c | 502 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv4() local 504 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv4() 505 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv4() 571 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv6() local 573 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv6() 574 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv6()
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 263 struct grehdr *greh = header; in build_gre_header() local 265 greh->protocol = htons(proto); in build_gre_header()
|
/Linux-v6.1/net/netfilter/ipvs/ |
D | ip_vs_core.c | 1549 struct gre_base_hdr _greh, *greh; in ipvs_gre_decap() local 1552 greh = skb_header_pointer(skb, offset, sizeof(_greh), &_greh); in ipvs_gre_decap() 1553 if (!greh) in ipvs_gre_decap() 1562 if ((greh->flags & ~GRE_CSUM) != 0) in ipvs_gre_decap() 1564 type = greh->protocol; in ipvs_gre_decap() 1569 return gre_calc_hlen(gre_flags_to_tnl_flags(greh->flags)); in ipvs_gre_decap()
|
/Linux-v6.1/drivers/net/ethernet/sfc/ |
D | efx_common.c | 1298 struct gre_base_hdr *greh; in efx_can_encap_offloads() local 1341 greh = (struct gre_base_hdr *)skb_transport_header(skb); in efx_can_encap_offloads() 1342 return !(greh->flags & (GRE_CSUM | GRE_SEQ)); in efx_can_encap_offloads()
|
/Linux-v6.1/drivers/net/ethernet/sfc/siena/ |
D | efx_common.c | 1310 struct gre_base_hdr *greh; in efx_can_encap_offloads() local 1353 greh = (struct gre_base_hdr *)skb_transport_header(skb); in efx_can_encap_offloads() 1354 return !(greh->flags & (GRE_CSUM | GRE_SEQ)); in efx_can_encap_offloads()
|