Home
last modified time | relevance | path

Searched refs:greh (Results 1 – 13 of 13) sorted by relevance

/linux/net/ipv4/
H A Dgre_offload.c71 struct gre_base_hdr *greh; in gre_gso_segment() local
91 greh = (struct gre_base_hdr *)skb_transport_header(skb); in gre_gso_segment()
92 pcsum = (__sum16 *)(greh + 1); in gre_gso_segment()
115 skb->csum_offset = sizeof(*greh); in gre_gso_segment()
127 const struct gre_base_hdr *greh; in gre_gro_receive() local
140 hlen = off + sizeof(*greh); in gre_gro_receive()
141 greh = skb_gro_header(skb, hlen, off); in gre_gro_receive()
142 if (unlikely(!greh)) in gre_gro_receive()
151 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0) in gre_gro_receive()
159 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou) in gre_gro_receive()
[all …]
H A Dip_gre.c899 struct gre_base_hdr *greh; in ipgre_header() local
910 greh = (struct gre_base_hdr *)(iph+1); in ipgre_header()
911 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); in ipgre_header()
912 greh->protocol = htons(type); in ipgre_header()
/linux/include/net/
H A Dgre.h105 struct gre_base_hdr *greh; in gre_build_header() local
111 greh = (struct gre_base_hdr *)skb->data; in gre_build_header()
112 greh->flags = gre_tnl_flags_to_gre_flags(flags); in gre_build_header()
113 greh->protocol = proto; in gre_build_header()
120 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); in gre_build_header()
139 skb->csum_offset = sizeof(*greh); in gre_build_header()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_ip_encap.c18 struct grehdr greh; in bpf_lwt_encap_gre()
39 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre()
54 struct grehdr greh; in bpf_lwt_encap_gre6()
73 hdr.greh.protocol = skb->protocol; in bpf_lwt_encap_gre6()
20 struct grehdr greh; bpf_lwt_encap_gre() member
56 struct grehdr greh; bpf_lwt_encap_gre6() member
H A Dtest_tc_tunnel.c616 struct gre_hdr greh; in decap_internal() local
653 if (bpf_skb_load_bytes(skb, off + len, &greh, sizeof(greh)) < 0) in decap_internal()
655 switch (bpf_ntohs(greh.protocol)) { in decap_internal()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c32 struct gre_base_hdr *greh = (struct gre_base_hdr *)(buf); in mlx5e_gen_ip_tunnel_header_gretap() local
46 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()
/linux/net/netfilter/
H A Dnf_flow_table_ip.c265 struct gre_base_hdr *greh; in nf_flow_tuple_ip() local
267 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()
268 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ip()
1043 struct gre_base_hdr *greh; in nf_flow_tuple_ipv6() local
1045 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ipv6()
1046 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ipv6()
H A Dnf_nat_proto.c228 const struct gre_base_hdr *greh; in gre_manip_pkt() local
236 greh = (void *)skb->data + hdroff; in gre_manip_pkt()
237 pgreh = (struct pptp_gre_header *)greh; in gre_manip_pkt()
244 switch (greh->flags & GRE_VERSION) { in gre_manip_pkt()
/linux/net/sched/
H A Dact_ct.c570 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv4() local
572 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv4()
573 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv4()
639 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv6() local
641 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv6()
642 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv6()
/linux/drivers/net/ethernet/sfc/siena/
H A Defx_common.c1300 struct gre_base_hdr *greh; in efx_can_encap_offloads() local
1343 greh = (struct gre_base_hdr *)skb_transport_header(skb); in efx_can_encap_offloads()
1344 return !(greh->flags & (GRE_CSUM | GRE_SEQ)); in efx_can_encap_offloads()
/linux/drivers/net/ethernet/sfc/
H A Defx_common.c1273 struct gre_base_hdr *greh; in efx_can_encap_offloads() local
1316 greh = (struct gre_base_hdr *)skb_transport_header(skb); in efx_can_encap_offloads()
1317 return !(greh->flags & (GRE_CSUM | GRE_SEQ)); in efx_can_encap_offloads()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_classification.c193 struct grehdr *greh = header; in build_gre_header() local
195 greh->protocol = htons(proto); in build_gre_header()
/linux/net/netfilter/ipvs/
H A Dip_vs_core.c1721 struct gre_base_hdr _greh, *greh; in ipvs_gre_decap() local
1724 greh = skb_header_pointer(skb, offset, sizeof(_greh), &_greh); in ipvs_gre_decap()
1725 if (!greh) in ipvs_gre_decap()
1735 if ((greh->flags & ~GRE_CSUM) != 0) in ipvs_gre_decap()
1737 type = greh->protocol; in ipvs_gre_decap()
1743 gre_flags_to_tnl_flags(flags, greh->flags); in ipvs_gre_decap()