macsec: fix checksumming after decryption
authorAndreas Steinmetz <ast@domdv.de>
Sun, 30 Jun 2019 20:46:45 +0000 (22:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 21:12:29 +0000 (14:12 -0700)
Fix checksumming after decryption.

Signed-off-by: Andreas Steinmetz <ast@domdv.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c

index 8ec73d67712386e1493f8d6a860a96c585708c41..8f46aa1ddec01180fab3587524b2719fc66bb216 100644 (file)
@@ -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);