[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1250be5ff32bc4312b3f3e724a8798db0563ea3c.camel@domdv.de>
Date: Sun, 30 Jun 2019 22:46:45 +0200
From: Andreas Steinmetz <ast@...dv.de>
To: netdev@...r.kernel.org
Cc: Sabrina Dubroca <sd@...asysnail.net>
Subject: [PATCH net 2/2] macsec: fix checksumming after decryption
Fix checksumming after decryption.
Signed-off-by: Andreas Steinmetz <ast@...dv.de>
--- a/drivers/net/macsec.c 2019-06-30 22:14:10.250285314 +0200
+++ b/drivers/net/macsec.c 2019-06-30 22:15:11.931230417 +0200
@@ -869,6 +869,7 @@
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);
Powered by blists - more mailing lists