]> www.infradead.org Git - users/willy/xarray.git/commit
mptcp: add mptcp_space_from_win helper
authorGeliang Tang <tanggeliang@kylinos.cn>
Wed, 5 Jun 2024 07:15:41 +0000 (09:15 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Jun 2024 13:13:47 +0000 (15:13 +0200)
commit5cdedad62eaba22c45b9c45c8199bacd461afd87
tree589ab4d79c6de290ca7fff02cf870995dcb6d454
parent5f0d0649c83f72399c19b18591ea1413ca94c015
mptcp: add mptcp_space_from_win helper

As a wrapper of __tcp_space_from_win(), this patch adds a MPTCP dedicated
space_from_win helper mptcp_space_from_win() in protocol.h to paired with
mptcp_win_from_space().

Use it instead of __tcp_space_from_win() in both mptcp_rcv_space_adjust()
and mptcp_set_rcvlowat().

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>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/sockopt.c