netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Steinmetz <ast@domdv.de>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Cc: Network Development <netdev@vger.kernel.org>,
	Sabrina Dubroca <sd@queasysnail.net>
Subject: Re: [PATCH net 2/2] macsec: fix checksumming after decryption
Date: Tue, 02 Jul 2019 06:24:14 +0200	[thread overview]
Message-ID: <94382bd8cfbf924779ce86cd6405331f70f65c27.camel@domdv.de> (raw)
In-Reply-To: <CA+FuTSdzM3AFFrvANczVzXeRP0TVZ06K--GkmTZVAk-6SKQGxA@mail.gmail.com>

On Sun, 2019-06-30 at 21:47 -0400, Willem de Bruijn wrote:
> On Sun, Jun 30, 2019 at 4:48 PM Andreas Steinmetz <ast@domdv.de>
> wrote:
> > 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);
> 
> Does this belong in macset_reset_skb?

Putting this in macsec_reset_skb would then miss out the "nosci:" part
of the RX path in macsec_handle_frame().


  reply	other threads:[~2019-07-02  4:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-30 20:46 [PATCH net 2/2] macsec: fix checksumming after decryption Andreas Steinmetz
2019-07-01  1:47 ` Willem de Bruijn
2019-07-02  4:24   ` Andreas Steinmetz [this message]
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=94382bd8cfbf924779ce86cd6405331f70f65c27.camel@domdv.de \
    --to=ast@domdv.de \
    --cc=netdev@vger.kernel.org \
    --cc=sd@queasysnail.net \
    --cc=willemdebruijn.kernel@gmail.com \
    /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).