mptcp: move fastopen subflow check inside mptcp_sendmsg_fastopen()
authorPaolo Abeni <pabeni@redhat.com>
Fri, 14 Apr 2023 14:08:02 +0000 (16:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2023 07:18:34 +0000 (08:18 +0100)
commita2702a076e73787db660fb8fd07d26a1a3108358
tree957329926b07a91156de5b2405025ed67de1079d
parent617612316953093bc859890e405e1b550c27d840
mptcp: move fastopen subflow check inside mptcp_sendmsg_fastopen()

So that we can avoid a bunch of check in fastpath. Additionally we
can specialize such check according to the specific fastopen method
- defer_connect vs MSG_FASTOPEN.

The latter bits will simplify the next patches.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c