mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
macsec: fix checksumming after decryption
[ Upstream commit 7d8b16b9fa ]
Fix checksumming after decryption.
Signed-off-by: Andreas Steinmetz <ast@domdv.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a76ca41392
commit
bca7b798f5
@@ -867,6 +867,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);
|
||||
|
||||
Reference in New Issue
Block a user