diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2024-06-05 09:15:40 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-06-06 15:13:47 +0200 |
commit | 5f0d0649c83f72399c19b18591ea1413ca94c015 (patch) | |
tree | 1605295b5c03c4e5e59c393eebf5c17d0090b801 /net | |
parent | 9b6a30febddf4857cb4c367f5294bb6118340e30 (diff) | |
download | linux-stable-5f0d0649c83f72399c19b18591ea1413ca94c015.tar.gz linux-stable-5f0d0649c83f72399c19b18591ea1413ca94c015.tar.bz2 linux-stable-5f0d0649c83f72399c19b18591ea1413ca94c015.zip |
mptcp: use mptcp_win_from_space helper
The MPTCP dedicated win_from_space helper mptcp_win_from_space() is defined
in protocol.h, use it in mptcp_rcv_space_adjust() instead of using the TCP
one. Here scaling_ratio is the same as msk->scaling_ratio.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mptcp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 7d44196ec5b6..546c80c6702a 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -2046,7 +2046,7 @@ static void mptcp_rcv_space_adjust(struct mptcp_sock *msk, int copied) if (rcvbuf > sk->sk_rcvbuf) { u32 window_clamp; - window_clamp = __tcp_win_from_space(scaling_ratio, rcvbuf); + window_clamp = mptcp_win_from_space(sk, rcvbuf); WRITE_ONCE(sk->sk_rcvbuf, rcvbuf); /* Make subflows follow along. If we do not do this, we |