diff options
author | Andreas Steinmetz <ast@domdv.de> | 2019-06-30 23:46:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-31 08:28:46 +0300 |
commit | 91b3202697b6b6ac65c42f10d01aa42edfd739b1 (patch) | |
tree | 6b8e122617dd40eb70dae3a9ce75d46a513dc73b | |
parent | 2e8768f34668a21ebc3fcc865abf0bd34c843d3f (diff) | |
download | linux-91b3202697b6b6ac65c42f10d01aa42edfd739b1.tar.xz |
macsec: fix checksumming after decryption
[ Upstream commit 7d8b16b9facb0dd81d1469808dd9a575fa1d525a ]
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>
-rw-r--r-- | drivers/net/macsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index dbde03b82912..0c69dfbd28ef 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -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); |