netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Steinmetz <ast@domdv.de>
To: netdev@vger.kernel.org
Cc: Sabrina Dubroca <sd@queasysnail.net>
Subject: [PATCH net 2/2] macsec: fix checksumming after decryption
Date: Sun, 30 Jun 2019 22:46:45 +0200	[thread overview]
Message-ID: <1250be5ff32bc4312b3f3e724a8798db0563ea3c.camel@domdv.de> (raw)

Fix checksumming after decryption.

Signed-off-by: Andreas Steinmetz <ast@domdv.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);


             reply	other threads:[~2019-06-30 20:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-30 20:46 Andreas Steinmetz [this message]
2019-07-01  1:47 ` [PATCH net 2/2] macsec: fix checksumming after decryption Willem de Bruijn
2019-07-02  4:24   ` Andreas Steinmetz
2019-07-02 14:35     ` Willem de Bruijn
2019-07-02 19:47       ` Andreas Steinmetz
2019-07-03  1:47         ` Willem de Bruijn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1250be5ff32bc4312b3f3e724a8798db0563ea3c.camel@domdv.de \
    --to=ast@domdv.de \
    --cc=netdev@vger.kernel.org \
    --cc=sd@queasysnail.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).