Lines Matching refs:greh
71 struct gre_base_hdr *greh;
91 greh = (struct gre_base_hdr *)skb_transport_header(skb);
92 pcsum = (__sum16 *)(greh + 1);
115 skb->csum_offset = sizeof(*greh);
127 const struct gre_base_hdr *greh;
140 hlen = off + sizeof(*greh);
141 greh = skb_gro_header(skb, hlen, off);
142 if (unlikely(!greh))
151 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0)
159 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou)
162 type = greh->protocol;
170 if (greh->flags & GRE_KEY)
173 if (greh->flags & GRE_CSUM)
178 greh = skb_gro_header_slow(skb, hlen, off);
179 if (unlikely(!greh))
184 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) {
208 if (greh2->flags != greh->flags ||
209 greh2->protocol != greh->protocol) {
213 if (greh->flags & GRE_KEY) {
215 if (*(__be32 *)(greh2+1) != *(__be32 *)(greh+1)) {
225 skb_gro_postpull_rcsum(skb, greh, grehlen);
238 struct gre_base_hdr *greh = (struct gre_base_hdr *)(skb->data + nhoff);
240 unsigned int grehlen = sizeof(*greh);
247 type = greh->protocol;
248 if (greh->flags & GRE_KEY)
251 if (greh->flags & GRE_CSUM)