Lines Matching refs:greh

71 		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()
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()
178 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
179 if (unlikely(!greh)) in gre_gro_receive()
184 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) { in gre_gro_receive()
208 if (greh2->flags != greh->flags || in gre_gro_receive()
209 greh2->protocol != greh->protocol) { in gre_gro_receive()
213 if (greh->flags & GRE_KEY) { in gre_gro_receive()
215 if (*(__be32 *)(greh2+1) != *(__be32 *)(greh+1)) { in gre_gro_receive()
225 skb_gro_postpull_rcsum(skb, greh, grehlen); in gre_gro_receive()
238 struct gre_base_hdr *greh = (struct gre_base_hdr *)(skb->data + nhoff); in gre_gro_complete() local
240 unsigned int grehlen = sizeof(*greh); in gre_gro_complete()
247 type = greh->protocol; in gre_gro_complete()
248 if (greh->flags & GRE_KEY) in gre_gro_complete()
251 if (greh->flags & GRE_CSUM) in gre_gro_complete()