Commit 961a727f authored by Andreas Steinmetz's avatar Andreas Steinmetz Committed by Greg Kroah-Hartman

macsec: fix checksumming after decryption

[ Upstream commit 7d8b16b9 ]

Fix checksumming after decryption.
Signed-off-by: default avatarAndreas Steinmetz <ast@domdv.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5e9991f
...@@ -869,6 +869,7 @@ static void macsec_reset_skb(struct sk_buff *skb, struct net_device *dev) ...@@ -869,6 +869,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) 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); memmove(skb->data + hdr_len, skb->data, 2 * ETH_ALEN);
skb_pull(skb, hdr_len); skb_pull(skb, hdr_len);
pskb_trim_unique(skb, skb->len - icv_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