]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fill skb page frag cache outside of mptcp_sendmsg_frag
authorFlorian Westphal <fw@strlen.de>
Sat, 16 May 2020 08:46:21 +0000 (10:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 May 2020 19:35:34 +0000 (12:35 -0700)
commit17fc386b7c7599156153599e33da350a903eb10d
treea5c79670b8f145d1dd6074de1df7dd512fbb1d05
parent7f1c7abea6ebe80091097c250a14c6c29811b886
mptcp: fill skb page frag cache outside of mptcp_sendmsg_frag

The mptcp_sendmsg_frag helper contains a loop that will wait on the
subflow sk.

It seems preferrable to only wait in mptcp_sendmsg() when blocking io is
requested.  mptcp_sendmsg already has such a wait loop that is used when
no subflow socket is available for transmission.

This is another preparation patch that makes sure we call
mptcp_sendmsg_frag only if the page frag cache has been refilled.

Followup patch will remove the wait loop from mptcp_sendmsg_frag().

The retransmit worker doesn't need to do this refill as it won't
transmit new mptcp-level data.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c