From: Andreas Steinmetz Date: Sun, 30 Jun 2019 20:46:45 +0000 (+0200) Subject: macsec: fix checksumming after decryption X-Git-Tag: v5.4-rc1~572^2~14^2~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d8b16b9facb0dd81d1469808dd9a575fa1d525a;p=platform%2Fkernel%2Flinux-rpi.git macsec: fix checksumming after decryption Fix checksumming after decryption. Signed-off-by: Andreas Steinmetz Signed-off-by: David S. Miller --- diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 8ec73d6..8f46aa1 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -865,6 +865,7 @@ static void macsec_reset_skb(struct sk_buff *skb, struct net_device *dev) static void macsec_finalize_skb(struct sk_buff *skb, u8 icv_len, u8 hdr_len) { + skb->ip_summed = CHECKSUM_NONE; memmove(skb->data + hdr_len, skb->data, 2 * ETH_ALEN); skb_pull(skb, hdr_len); pskb_trim_unique(skb, skb->len - icv_len);