From: Andreas Steinmetz Date: Sun, 30 Jun 2019 20:46:45 +0000 (+0200) Subject: macsec: fix checksumming after decryption X-Git-Tag: v4.9.187~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bca7b798f56bb303b94672a8f2a71b7916aa363b;p=platform%2Fkernel%2Flinux-amlogic.git macsec: fix checksumming after decryption [ Upstream commit 7d8b16b9facb0dd81d1469808dd9a575fa1d525a ] Fix checksumming after decryption. Signed-off-by: Andreas Steinmetz Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 70ca128..d91f020 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -867,6 +867,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);