From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8482715AFC for ; Fri, 12 Jan 2024 19:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J6dLayxe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 495B2C433C7; Fri, 12 Jan 2024 19:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705088249; bh=zQhKcYqWDb4Yy553Yt1DpGTpWZQnaKuNZEwHHrPE0rU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J6dLayxeJ0AMuuem9U5kRCFXc29wo1fggzGffsdGulMS6XEuB/sZZ5CVeLQEFBm+H vJ31MG9/Qb0koCq7CVQxAM49HocZFiLASNu6nqVRk0QXuNTsLKd9oghoLI0ANHbJzZ 5VXwJVmpauUkmK7ItK/oXJPM3tkel3PWwfWwCJpNNlQGWlR3YdQjtxSYwbF8H2MGrI 2QUf4y+A5ArxgUWYOJoz7q3WEL1ca4ziwGQNi9OV2j8WY+n/VGNodM6zTSdY1GIhfd bey59Kg946P6l2B4f3olcm7vs+DrvX77jyfgIuFgygSOmuzTVbxiFjFD43Nwws4Oss 2WC7AxyU531AA== Date: Fri, 12 Jan 2024 19:37:24 +0000 From: Simon Horman To: Eric Dumazet Cc: "David S . Miller" , Jakub Kicinski , Paolo Abeni , Matthieu Baerts , Mat Martineau , Geliang Tang , Florian Westphal , netdev@vger.kernel.org, eric.dumazet@gmail.com Subject: Re: [PATCH net 5/5] mptcp: refine opt_mp_capable determination Message-ID: <20240112193724.GG392144@kernel.org> References: <20240111194917.4044654-1-edumazet@google.com> <20240111194917.4044654-6-edumazet@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111194917.4044654-6-edumazet@google.com> On Thu, Jan 11, 2024 at 07:49:17PM +0000, Eric Dumazet wrote: > OPTIONS_MPTCP_MPC is a combination of three flags. > > It would be better to be strict about testing what > flag is expected, at least for code readability. > > mptcp_parse_option() already makes the distinction. > > - subflow_check_req() should use OPTION_MPTCP_MPC_SYN. > > - mptcp_subflow_init_cookie_req() should use OPTION_MPTCP_MPC_ACK. > > - subflow_finish_connect() should use OPTION_MPTCP_MPC_SYNACK > > - subflow_syn_recv_sock should use OPTION_MPTCP_MPC_ACK > > Suggested-by: Paolo Abeni > Signed-off-by: Eric Dumazet Reviewed-by: Simon Horman