Commit 7d8b16b9 authored by Andreas Steinmetz's avatar Andreas Steinmetz Committed by David S. Miller

macsec: fix checksumming after decryption

Fix checksumming after decryption.
Signed-off-by: default avatarAndreas Steinmetz <ast@domdv.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 095c02da
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment