]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: handle defer connect in mptcp_sendmsg
authorDmytro Shytyi <dmytro@shytyi.net>
Mon, 26 Sep 2022 23:27:38 +0000 (16:27 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Sep 2022 01:52:03 +0000 (18:52 -0700)
commitd98a82a6afc764156d6ca7a437d52761ac9b062e
tree9cebcff4fc4760c7c1f6bc9ea1da49f5cf773758
parent3242abeb8da7071fa40d32346ed36343bee33b80
mptcp: handle defer connect in mptcp_sendmsg

When TCP_FASTOPEN_CONNECT has been set on the socket before a connect,
the defer flag is set and must be handled when sendmsg is called.

This is similar to what is done in tcp_sendmsg_locked().

Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Co-developed-by: Benjamin Hesmans <benjamin.hesmans@tessares.net>
Signed-off-by: Benjamin Hesmans <benjamin.hesmans@tessares.net>
Signed-off-by: Dmytro Shytyi <dmytro@shytyi.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c