* [PATCH net-next] crypto/chcr: fix incorrect ipv6 packet length
@ 2020-03-30 16:11 Rohit Maheshwari
2020-03-30 17:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Rohit Maheshwari @ 2020-03-30 16:11 UTC (permalink / raw)
To: davem, netdev; +Cc: kuba, borisp, secdev, Rohit Maheshwari
IPv6 header's payload length field shouldn't include IPv6 header length.
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
---
drivers/crypto/chelsio/chcr_ktls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.18.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] crypto/chcr: fix incorrect ipv6 packet length
2020-03-30 16:11 [PATCH net-next] crypto/chcr: fix incorrect ipv6 packet length Rohit Maheshwari
@ 2020-03-30 17:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-03-30 17:41 UTC (permalink / raw)
To: rohitm; +Cc: netdev, kuba, borisp, secdev
From: Rohit Maheshwari <rohitm@chelsio.com>
Date: Mon, 30 Mar 2020 21:41:22 +0530
> IPv6 header's payload length field shouldn't include IPv6 header length.
>
> Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-30 17:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 16:11 [PATCH net-next] crypto/chcr: fix incorrect ipv6 packet length Rohit Maheshwari
2020-03-30 17:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).