Commit aa0e51cd authored by Dmitry Kravkov's avatar Dmitry Kravkov Committed by David S. Miller

ip_gre: allow CSUM capable devices to handle packets

If device is not able to handle checksumming it will
be handled in dev_xmit
Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0809dbc
...@@ -745,11 +745,8 @@ static struct sk_buff *handle_offloads(struct sk_buff *skb) ...@@ -745,11 +745,8 @@ static struct sk_buff *handle_offloads(struct sk_buff *skb)
goto error; goto error;
skb_shinfo(skb)->gso_type |= SKB_GSO_GRE; skb_shinfo(skb)->gso_type |= SKB_GSO_GRE;
return skb; return skb;
} else if (skb->ip_summed == CHECKSUM_PARTIAL) {
err = skb_checksum_help(skb);
if (unlikely(err))
goto error;
} }
if (skb->ip_summed != CHECKSUM_PARTIAL)
skb->ip_summed = CHECKSUM_NONE; skb->ip_summed = CHECKSUM_NONE;
return skb; return skb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment