Lines Matching refs:greh
63 struct gre_base_hdr *greh;
83 greh = (struct gre_base_hdr *)skb_transport_header(skb);
84 pcsum = (__sum16 *)(greh + 1);
121 const struct gre_base_hdr *greh;
134 hlen = off + sizeof(*greh);
135 greh = skb_gro_header_fast(skb, off);
137 greh = skb_gro_header_slow(skb, hlen, off);
138 if (unlikely(!greh))
148 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0)
156 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou)
159 type = greh->protocol;
168 if (greh->flags & GRE_KEY)
171 if (greh->flags & GRE_CSUM)
176 greh = skb_gro_header_slow(skb, hlen, off);
177 if (unlikely(!greh))
182 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) {
206 if (greh2->flags != greh->flags ||
207 greh2->protocol != greh->protocol) {
211 if (greh->flags & GRE_KEY) {
213 if (*(__be32 *)(greh2+1) != *(__be32 *)(greh+1)) {
223 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)