mptcp: rework mptcp_sendmsg
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest7 patches 2 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | mptcp: break and restart in case mptcp sndbuf is fullnet/ | +30 | 2 replies | |
| 2/7 | mptcp: avoid blocking in tcp_sendpagesnet/ | +30 | 0 replies | |
| 3/7 | mptcp: make sure timer is inited once data is pending for transmissionnet/ | +3 | 0 replies | |
| 4/7 | mptcp: fill skb extension cache outside of mptcp_sendmsg_fragnet/ | +14 | 0 replies | |
| 5/7 | mptcp: fill skb page frag cache outside of mptcp_sendmsg_fragnet/ | +6 | 0 replies | |
| 6/7 | mptcp: remove inner wait loop from mptcp_sendmsg_fragnet/ | +0 | 0 replies | |
| 7/7 | net: allow __skb_ext_alloc to sleepinclude/ net/ net/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [MPTCP] [PATCH net-next v2 0/7] mptcp: rework mptcp_sendmsg
This series reworks mptcp_sendmsg logic to avoid blocking on the subflow socket.
This is another iteration, because there were problems with the previous one.
1. Add a new patch 1/7 to stop mptcp from accepting megabytes worth of data when tcp data gets acked at subflow level quickly, but not at mptcp level.
2. drop the patch that cached an skb in sk->sk_tx_skb_cache. One problem with that patch was that it sabotages an extra check that tcp has: when it allocates and skb it will behave slightly differently when the tcp write and retrans queues are empty wrt. wmem schedule.
By preallocating in mptcp layer that code gets bypassed. Moreover, the preallocation doesn't buy anything; the allocation can schedule but it won't sleep forever.
3. for the 3rd patch I moved the initialisation to a single location, also the timer is only started before returning to userspace. As long was we keep looping, the timer doesn't have to be started here as it will be kicked by mptcp_data_acked() for the incoming acks.
4. xmit via lo and MPTCP is SLOOOOOOOOW in 'mmap' mode. However it turned out this is already the case without these patches, so I decided to send these patches out anyway.
I will send another email to followup up on this.
I've preserved Paolos ACKs on patches that had no changes vs. v1.
Florian Westphal (7):
mptcp: break and restart in case mptcp sndbuf is full
mptcp: avoid blocking in tcp_sendpages
mptcp: make sure timer is inited once data is pending for transmission
mptcp: fill skb extension cache outside of mptcp_sendmsg_frag
mptcp: fill skb page frag cache outside of mptcp_sendmsg_frag
mptcp: remove inner wait loop from mptcp_sendmsg_frag
net: allow __skb_ext_alloc to sleep
include/linux/skbuff.h | 2 +- net/core/skbuff.c | 8 ++-- net/mptcp/protocol.c | 116 ++++++++++++++++++++++++++++++++++++------------- 3 files changed, 91 insertions(+), 35 deletions(-)