diff options
| author | Paolo Abeni <[email protected]> | 2024-12-30 18:12:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-03 02:44:03 +0000 |
| commit | 449e6912a2522af672e99992e1201a454910864e (patch) | |
| tree | e75e4686c89eac5b5c24cd5822f0e16ce06883ab /drivers/fpga/lattice-sysconfig-spi.c | |
| parent | ila: serialize calls to nf_register_net_hooks() (diff) | |
| download | kernel-449e6912a2522af672e99992e1201a454910864e.tar.gz kernel-449e6912a2522af672e99992e1201a454910864e.zip | |
mptcp: fix recvbuffer adjust on sleeping rcvmsg
If the recvmsg() blocks after receiving some data - i.e. due to
SO_RCVLOWAT - the MPTCP code will attempt multiple times to
adjust the receive buffer size, wrongly accounting every time the
cumulative of received data - instead of accounting only for the
delta.
Address the issue moving mptcp_rcv_space_adjust just after the
data reception and passing it only the just received bytes.
This also removes an unneeded difference between the TCP and MPTCP
RX code path implementation.
Fixes: 581302298524 ("mptcp: error out earlier on disconnect")
Cc: [email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Reviewed-by: Mat Martineau <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/lattice-sysconfig-spi.c')
0 files changed, 0 insertions, 0 deletions
