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 979A2364C8 for ; Fri, 24 Nov 2023 21:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XyLbpN99" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8310CC433C8; Fri, 24 Nov 2023 21:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700862299; bh=XGK/rm2nZ8l0IwrJ1T4IoIDQp0GnpsSLQFt+fmy7Kt4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XyLbpN995VD16br9dXG6ZvJAvVJ6o75XXgEFSP+c30mjBsHM190gbFYVQtXFR967s eFRz3x4utuG9lmlDE5cEmYXeDcOuRVOUCMaP1IyBxE50Syp6oyN0Ex5jB5FgyR5Tam bjj80NrUAvOo39mCFQFsAT1ig8qneJ1xwU5uL/NPvtvTlTTbzZ7Ooej16+R9kSnXbh MjLB0CvkH7YOJGjCOju6xW1jTKedQrY/gEovJGTt92mzcqUzRM5D7hl7znbNA1Ys3P 3a6rpFr0HFynhAzYicoSnjoG6hVJ3IYnvfCVhx6TIhpZ5MefKXeEqdqYbNXJ3d9b8o 33WeuQc2Dh/JA== Date: Fri, 24 Nov 2023 21:44:55 +0000 From: Simon Horman To: Kuniyuki Iwashima Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Kuniyuki Iwashima , netdev@vger.kernel.org Subject: Re: [PATCH v1 net-next 2/8] tcp: Cache sock_net(sk) in cookie_v[46]_check(). Message-ID: <20231124214455.GZ50352@kernel.org> References: <20231123012521.62841-1-kuniyu@amazon.com> <20231123012521.62841-3-kuniyu@amazon.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: <20231123012521.62841-3-kuniyu@amazon.com> On Wed, Nov 22, 2023 at 05:25:15PM -0800, Kuniyuki Iwashima wrote: > sock_net(sk) is used repeatedly in cookie_v[46]_check(). > Let's cache it in a variable. > > Signed-off-by: Kuniyuki Iwashima Reviewed-by: Simon Horman