Skip to content

Commit aa0e51c

Browse files
Dmitry Kravkovdavem330
authored andcommitted
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: Dmitry Kravkov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e0809db commit aa0e51c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

net/ipv4/ip_gre.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,12 +745,9 @@ static struct sk_buff *handle_offloads(struct sk_buff *skb)
745745
goto error;
746746
skb_shinfo(skb)->gso_type |= SKB_GSO_GRE;
747747
return skb;
748-
} else if (skb->ip_summed == CHECKSUM_PARTIAL) {
749-
err = skb_checksum_help(skb);
750-
if (unlikely(err))
751-
goto error;
752748
}
753-
skb->ip_summed = CHECKSUM_NONE;
749+
if (skb->ip_summed != CHECKSUM_PARTIAL)
750+
skb->ip_summed = CHECKSUM_NONE;
754751

755752
return skb;
756753

0 commit comments

Comments
 (0)