Lines Matching refs:greh

24 	struct gre_base_hdr *greh;  in gre_gso_segment()  local
46 if (unlikely(!pskb_may_pull(skb, sizeof(*greh)))) in gre_gso_segment()
49 greh = (struct gre_base_hdr *)skb_transport_header(skb); in gre_gso_segment()
52 if (unlikely(ghl < sizeof(*greh))) in gre_gso_segment()
55 csum = !!(greh->flags & GRE_CSUM); in gre_gso_segment()
60 skb->protocol = greh->protocol; in gre_gso_segment()
99 greh = (struct gre_base_hdr *) in gre_gso_segment()
101 pcsum = (__be32 *)(greh + 1); in gre_gso_segment()
124 const struct gre_base_hdr *greh; in gre_gro_receive() local
132 hlen = off + sizeof(*greh); in gre_gro_receive()
133 greh = skb_gro_header_fast(skb, off); in gre_gro_receive()
135 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
136 if (unlikely(!greh)) in gre_gro_receive()
146 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0) in gre_gro_receive()
149 type = greh->protocol; in gre_gro_receive()
158 if (greh->flags & GRE_KEY) in gre_gro_receive()
161 if (greh->flags & GRE_CSUM) in gre_gro_receive()
166 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
167 if (unlikely(!greh)) in gre_gro_receive()
172 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) { in gre_gro_receive()
198 if (greh2->flags != greh->flags || in gre_gro_receive()
199 greh2->protocol != greh->protocol) { in gre_gro_receive()
203 if (greh->flags & GRE_KEY) { in gre_gro_receive()
205 if (*(__be32 *)(greh2+1) != *(__be32 *)(greh+1)) { in gre_gro_receive()
215 skb_gro_postpull_rcsum(skb, greh, grehlen); in gre_gro_receive()
229 struct gre_base_hdr *greh = (struct gre_base_hdr *)(skb->data + nhoff); in gre_gro_complete() local
231 unsigned int grehlen = sizeof(*greh); in gre_gro_complete()
238 type = greh->protocol; in gre_gro_complete()
239 if (greh->flags & GRE_KEY) in gre_gro_complete()
242 if (greh->flags & GRE_CSUM) in gre_gro_complete()