macsec: fix checksumming after decryption
Fix checksumming after decryption. Signed-off-by: Andreas Steinmetz <ast@domdv.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
095c02da80
commit
7d8b16b9fa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user