mptcp: avoid unneeded indirection in mptcp_stream_accept()
authorPaolo Abeni <pabeni@redhat.com>
Fri, 11 Aug 2023 15:57:22 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2023 06:06:14 +0000 (07:06 +0100)
commit1f6610b92ac3c4cd4b7904b1d00b776f9bf08ed3
tree36e1db550b415d8f0fff9f49565b20b1151c982e
parent5426a4ef6455c93e76a553eda0a1811bb0bbd214
mptcp: avoid unneeded indirection in mptcp_stream_accept()

We are going to remove the first subflow socket soon, so avoid
the additional indirection at accept() time. Instead access
directly the first subflow sock, and update mptcp_accept() to
operate on it. This allows dropping a duplicated check in
mptcp_accept().

No functional changes intended.

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