Received: from sender11-of-o51.zoho.eu (sender11-of-o51.zoho.eu [31.186.226.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBCC9161 for ; Fri, 23 Sep 2022 00:15:42 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1663892140; cv=none; d=zohomail.eu; s=zohoarc; b=Snkj9/lO3Yc+vOQIxFQrRbZD2xzF8jWds5/8hORr+/iFQMpHfZtF/Ku5z+9eYXXb+Fg42IyhuDxkyWoQ5s5aT1b83N2VapSpLXNOEZIZj91albacAnHwpdPLXCI2zbYf54A7IvlZIXZFSy2VeR/BNr8/vmv67aXvTFWlcVGpc8o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1663892140; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=6VGZAIh7EpespE4LV/c9Ktfb0qqji+pevbFFH90CpKE=; b=hNZyiutAYzKMbRswAuS5SR1OKRuMidenrxZ21A3PCyuBPwVWs7wgobGeTUMJ6XdcwbPCC88Z7zUbZuRBV4xDHKVq2prE22d2WIXeUM0ak3qEqZ7hCc7TayoisQli2hXxE1EHkXmWuKs3DpSgODN0N/Q9yh3hNP18CuDEUIQgJvo= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=shytyi.net; spf=pass smtp.mailfrom=dmytro@shytyi.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663892140; s=hs; d=shytyi.net; i=dmytro@shytyi.net; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=6VGZAIh7EpespE4LV/c9Ktfb0qqji+pevbFFH90CpKE=; b=HoNFVgXVOHoV6CPepF0PjIbpeaxC3kVdAgjQd69ihrOGiLLIHUl2JDIYbDVa4NQP IAtFy+3RHxG7Mbqu05dwhyQFZ1ikfdzSjxvBiS81IdK5wrufhBZrckyQqy9ldBwIU6B hruEjNwV7+oD8nGeIPEWur2wxZPfwPLDPafqeUhg= Received: from doris.localdomain (243.34.22.93.rev.sfr.net [93.22.34.243]) by mx.zoho.eu with SMTPS id 1663892137481265.0249531625059; Fri, 23 Sep 2022 02:15:37 +0200 (CEST) From: Dmytro Shytyi To: mptcp@lists.linux.dev Cc: Dmytro Shytyi Message-ID: <20220923001530.9722-3-dmytro@shytyi.net> Subject: [RFC PATCH mptcp-next v10 2/3] mptcp: add mptcp_stream_connect to *.h Date: Fri, 23 Sep 2022 02:15:29 +0200 X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220923001530.9722-1-dmytro@shytyi.net> References: <20220923001530.9722-1-dmytro@shytyi.net> Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 In the following patches we will call mptcp_stream_connect() from function tcp_sendmsg_fastopen() in file "net/ipv4/tcp.c", thus make such symbol visible. Signed-off-by: Dmytro Shytyi --- net/mptcp/protocol.c | 4 ++-- net/mptcp/protocol.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 7d4e197ec567..c39ed726c1c0 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -3543,8 +3543,8 @@ static void mptcp_subflow_early_fallback(struct mptcp= _sock *msk, =09__mptcp_do_fallback(msk); } =20 -static int mptcp_stream_connect(struct socket *sock, struct sockaddr *uadd= r, -=09=09=09=09int addr_len, int flags) +int mptcp_stream_connect(struct socket *sock, struct sockaddr *uaddr, +=09=09=09 int addr_len, int flags) { =09struct mptcp_sock *msk =3D mptcp_sk(sock->sk); =09struct mptcp_subflow_context *subflow; diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index 522647804aed..57596cdfb1f9 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -837,6 +837,7 @@ void mptcp_event(enum mptcp_event_type type, const stru= ct mptcp_sock *msk, void mptcp_event_addr_announced(const struct sock *ssk, const struct mptcp= _addr_info *info); void mptcp_event_addr_removed(const struct mptcp_sock *msk, u8 id); bool mptcp_userspace_pm_active(const struct mptcp_sock *msk); +int mptcp_stream_connect(struct socket *sock, struct sockaddr *uaddr, int = addr_len, int flags); =20 // Fast Open Mechanism functions begin int mptcp_setsockopt_sol_tcp_fastopen(struct mptcp_sock *msk, sockptr_t op= tval, --=20 2.25.1