linux_dsm_epyc7002/net/mptcp
Florian Westphal 7948f6cc99 mptcp: allow partial cleaning of rtx head dfrag
After adding wmem accounting for the mptcp socket we could get
into a situation where the mptcp socket can't transmit more data,
and mptcp_clean_una doesn't reduce wmem even if snd_una has advanced
because it currently will only remove entire dfrags.

Allow advancing the dfrag head sequence and reduce wmem,
even though this isn't correct (as we can't release the page).

Because we will soon block on mptcp sk in case wmem is too large,
call sk_stream_write_space() in case we reduced the backlog so
userspace task blocked in sendmsg or poll will be woken up.

This isn't an issue if the send buffer is large, but it is when
SO_SNDBUF is used to reduce it to a lower value.

Note we can still get a deadlock for low SO_SNDBUF values in
case both sides of the connection write to the socket: both could
be blocked due to wmem being too small -- and current mptcp stack
will only increment mptcp ack_seq on recv.

This doesn't happen with the selftest as it uses poll() and
will always call recv if there is data to read.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-29 22:14:48 -07:00
..
crypto.c mptcp: Add ADD_ADDR handling 2020-03-29 22:14:48 -07:00
ctrl.c mptcp: new sysctl to control the activation per NS 2020-01-24 13:44:08 +01:00
Kconfig mptcp: select CRYPTO 2020-02-16 19:37:16 -08:00
Makefile mptcp: Add path manager interface 2020-03-29 22:14:48 -07:00
options.c mptcp: introduce MPTCP retransmission timer 2020-03-29 22:14:48 -07:00
pm.c mptcp: Implement path manager interface commands 2020-03-29 22:14:48 -07:00
protocol.c mptcp: allow partial cleaning of rtx head dfrag 2020-03-29 22:14:48 -07:00
protocol.h mptcp: allow partial cleaning of rtx head dfrag 2020-03-29 22:14:48 -07:00
subflow.c mptcp: Add handling of outgoing MP_JOIN requests 2020-03-29 22:14:48 -07:00
token.c mptcp: Add handling of incoming MP_JOIN requests 2020-03-29 22:14:48 -07:00