diff options
author | Rohit Maheshwari <rohitm@chelsio.com> | 2020-03-30 18:11:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 19:40:12 +0200 |
commit | e14394e656855c218c0c6cf918c550d5fdc1401d (patch) | |
tree | e7a4571da53ca37da6696e7a50b49a4fc4696f07 | |
parent | net: stmmac: Add support for VLAN Rx filtering (diff) | |
download | linux-e14394e656855c218c0c6cf918c550d5fdc1401d.tar.xz linux-e14394e656855c218c0c6cf918c550d5fdc1401d.zip |
crypto/chcr: fix incorrect ipv6 packet length
IPv6 header's payload length field shouldn't include IPv6 header length.
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/crypto/chelsio/chcr_ktls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/chelsio/chcr_ktls.c b/drivers/crypto/chelsio/chcr_ktls.c index 00099e793e63..73658b71d4a3 100644 --- a/drivers/crypto/chelsio/chcr_ktls.c +++ b/drivers/crypto/chelsio/chcr_ktls.c @@ -981,7 +981,7 @@ chcr_ktls_write_tcp_options(struct chcr_ktls_info *tx_info, struct sk_buff *skb, ip->tot_len = htons(pktlen - maclen); } else { ip6 = (struct ipv6hdr *)(buf + maclen); - ip6->payload_len = htons(pktlen - maclen); + ip6->payload_len = htons(pktlen - maclen - iplen); } /* now take care of the tcp header, if fin is not set then clear push * bit as well, and if fin is set, it will be sent at the last so we |