]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78435b6883a5f1e1b428f3f9f1087c903d69fabf
tree9765e93da93161677e90f10c7c72027b397fa362
parent5058198655489045a476c19f0d237913d970a003
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