gre: Set inner mac header in gro complete
Subsystems (2)
PATCH 1/1 gre: Set inner mac header in gro complete
Set the inner mac header to point to the GRE payload when doing GRO. This is needed if we proceed to send the packet through GRE GSO which now uses the inner mac header instead of inner network header to determine the length of encapsulation headers.
Fixes 14051f0452a2 ("gre: Use inner mac length when computing tunnel length")
Reported-by Wolfgang Walter <[email protected]>
Signed-off-by Tom Herbert <[email protected]>
--- net/ipv4/gre_offload.c | 3 +++ 1 file changed, 3 insertions(+)
net/ipv4/gre_offload.c +3 -0
@@ -247,6 +247,9 @@ static int gre_gro_complete(struct sk_buff *skb, int nhoff) err = ptype->callbacks.gro_complete (skb, nhoff + grehlen);rcu_read_unlock (); + +skb_set_inner_mac_header (skb, nhoff + grehlen); +return err; }
Signature · 1 line
2.2.0.rc0.207.ga3a616c