mptcp: use tcp_build_frag()
authorPaolo Abeni <pabeni@redhat.com>
Mon, 16 Nov 2020 09:48:03 +0000 (10:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Nov 2020 18:46:06 +0000 (10:46 -0800)
commite2223995a2872c0e23ed44e1dbb493817b567666
tree9765e93da93161677e90f10c7c72027b397fa362
parentb796d04bd014fd24e60ab4a6c604b258ac947825
mptcp: use tcp_build_frag()

mptcp_push_pending() is called even on orphaned
msk (and orphaned subflows), if there is outstanding
data at close() time.

To cope with the above MPTCP needs to handle explicitly
the allocation failure on xmit. The newly introduced
do_tcp_sendfrag() allows that, just plug it.

We can additionally drop a couple of sanity checks,
duplicate in the TCP code.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c