Thread (6 messages) 6 messages, 2 authors, 2019-07-03

Re: [PATCH net 2/2] macsec: fix checksumming after decryption

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2019-07-02 14:35:52

On Tue, Jul 2, 2019 at 12:25 AM Andreas Steinmetz [off-list ref] wrote:
On Sun, 2019-06-30 at 21:47 -0400, Willem de Bruijn wrote:
quoted
On Sun, Jun 30, 2019 at 4:48 PM Andreas Steinmetz [off-list ref]
wrote:
quoted
Fix checksumming after decryption.

Signed-off-by: Andreas Steinmetz <redacted>
--- 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().
It is called on each nskb before calling netif_rx.

It indeed is not called when returning RX_HANDLER_PASS, but that is correct?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help