From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [193.142.43.52]) (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 F2D8B70 for ; Tue, 11 May 2021 13:36:43 +0000 (UTC) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lgSYs-0000Sl-Kn; Tue, 11 May 2021 15:36:34 +0200 Date: Tue, 11 May 2021 15:36:34 +0200 From: Florian Westphal To: Mat Martineau Cc: Florian Westphal , mptcp@lists.linux.dev Subject: Re: [PATCH mptcp-next 5/8] mptcp: setsockopt: handle SOL_SOCKET in one place only Message-ID: <20210511133634.GG4038@breakpoint.cc> References: <20210506102243.2390-1-fw@strlen.de> <20210506102243.2390-6-fw@strlen.de> X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Mat Martineau wrote: > On Thu, 6 May 2021, Florian Westphal wrote: > > + if (level == SOL_SOCKET) > > + return true; /* mptcp_setsockopt_sol_socket handles this */ > > I suggest not adding these two lines, and moving the call to > mptcp_supported_sockopt() after the SOL_SOCKET handling at the beginning of > mptcp_setsockopt(). What do you think? I think thats better. V2 coming in a second.