* [PATCH net-next v2] crypto/chtls: Enable tcp window scaling option
@ 2020-07-17 19:16 Vinay Kumar Yadav
2020-07-21 1:29 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Vinay Kumar Yadav @ 2020-07-17 19:16 UTC (permalink / raw)
To: netdev, davem, kuba; +Cc: borisp, daniel, secdev, Vinay Kumar Yadav
Enable tcp window scaling option in hw based on sysctl settings
and option in connection request.
v1->v2:
- Set window scale option based on option in connection request.
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
---
drivers/crypto/chelsio/chtls/chtls_cm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/chelsio/chtls/chtls_cm.c b/drivers/crypto/chelsio/chtls/chtls_cm.c
index 07641b30f317..27569679ed65 100644
--- a/drivers/crypto/chelsio/chtls/chtls_cm.c
+++ b/drivers/crypto/chelsio/chtls/chtls_cm.c
@@ -1041,6 +1041,7 @@ static void chtls_pass_accept_rpl(struct sk_buff *skb,
opt2 |= CONG_CNTRL_V(CONG_ALG_NEWRENO);
opt2 |= T5_ISS_F;
opt2 |= T5_OPT_2_VALID_F;
+ opt2 |= WND_SCALE_EN_V(WSCALE_OK(tp));
rpl5->opt0 = cpu_to_be64(opt0);
rpl5->opt2 = cpu_to_be32(opt2);
rpl5->iss = cpu_to_be32((prandom_u32() & ~7UL) - 1);
--
2.18.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next v2] crypto/chtls: Enable tcp window scaling option
2020-07-17 19:16 [PATCH net-next v2] crypto/chtls: Enable tcp window scaling option Vinay Kumar Yadav
@ 2020-07-21 1:29 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-07-21 1:29 UTC (permalink / raw)
To: vinay.yadav; +Cc: netdev, kuba, borisp, daniel, secdev
From: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Date: Sat, 18 Jul 2020 00:46:40 +0530
> Enable tcp window scaling option in hw based on sysctl settings
> and option in connection request.
>
> v1->v2:
> - Set window scale option based on option in connection request.
>
> Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-21 1:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 19:16 [PATCH net-next v2] crypto/chtls: Enable tcp window scaling option Vinay Kumar Yadav
2020-07-21 1:29 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.