projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
extcon: Add an API to get extcon device from dt node
[firefly-linux-kernel-4.4.55.git]
/
net
/
ipv4
/
gre_offload.c
diff --git
a/net/ipv4/gre_offload.c
b/net/ipv4/gre_offload.c
index 775d5b532ece788db2bfd57c9cf826567036f7c3..55e6bfb3a28921c26b0be3170f10c1245a9a74ae 100644
(file)
--- a/
net/ipv4/gre_offload.c
+++ b/
net/ipv4/gre_offload.c
@@
-100,6
+100,9
@@
static struct sk_buff *gre_gso_segment(struct sk_buff *skb,
}
__skb_push(skb, tnl_hlen - ghl);
+ skb_reset_inner_headers(skb);
+ skb->encapsulation = 1;
+
skb_reset_mac_header(skb);
skb_set_network_header(skb, mac_len);
skb->mac_len = mac_len;