projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9cd26f
)
mptcp: fix snd_wnd initialization for passive socket
author
Paolo Abeni
<pabeni@redhat.com>
Fri, 23 Feb 2024 16:14:15 +0000
(17:14 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 27 Feb 2024 02:41:56 +0000
(18:41 -0800)
Such value should be inherited from the first subflow, but
passive sockets always used 'rsk_rcv_wnd'.
Fixes:
6f8a612a33e4
("mptcp: keep track of advertised windows right edge")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link:
https://lore.kernel.org/r/20240223-upstream-net-20240223-misc-fixes-v1-5-162e87e48497@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mptcp/protocol.c
b/net/mptcp/protocol.c
index 442fa7d9b57a5a5a70722842229af51aea557107..2c8f931c6d5b8159c0bced71c49c741fe73b4442 100644
(file)
--- a/
net/mptcp/protocol.c
+++ b/
net/mptcp/protocol.c
@@
-3211,7
+3211,7
@@
struct sock *mptcp_sk_clone_init(const struct sock *sk,
msk->write_seq = subflow_req->idsn + 1;
msk->snd_nxt = msk->write_seq;
msk->snd_una = msk->write_seq;
- msk->wnd_end = msk->snd_nxt +
req->rsk_rcv
_wnd;
+ msk->wnd_end = msk->snd_nxt +
tcp_sk(ssk)->snd
_wnd;
msk->setsockopt_seq = mptcp_sk(sk)->setsockopt_seq;
mptcp_init_sched(msk, mptcp_sk(sk)->sched);