inet: factor out locked section of inet_accept() in a new helper
authorPaolo Abeni <pabeni@redhat.com>
Wed, 17 May 2023 19:16:14 +0000 (12:16 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 May 2023 03:06:31 +0000 (20:06 -0700)
commit711bdd5141d81ab21dbe0a533024d594210d5ba4
tree8af2f5df290e8796698fe9b978a9b8717647dd27
parentbf9233f913eb17d784ffbfff4ff55bc0772f3063
inet: factor out locked section of inet_accept() in a new helper

No functional changes intended. The new helper will be used
by the MPTCP protocol in the next patch to avoid duplicating
a few LoC.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/inet_common.h
net/ipv4/af_inet.c