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 06DE410A18 for ; Sat, 23 Sep 2023 11:10:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 786CCC433C9; Sat, 23 Sep 2023 11:10:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695467434; bh=VlkcOypmZrR7VawQYftIHguoiDQHrQSxjDWYlRjEukk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=o7SFacdvd8KWsD5jzP7QBxdmkQqBBGyvoJA+PAyhLLiePoprUmjdIj7Huj3pELzdf QGxJKYt/6kKhrADlzl9TNZSfV4FWZ2ZOSUHuGGLSIiUziTKpYQDDwj94R9Bl46FB7d EvaC3mtgI0pHUde8DpPEylS9ExB5MHSr++ejCBumaAub6MxyGNPwjnfL0DzRuKT2Hd JeDWT7c7gYkrZEsCTiDnmj+/Taaj57SwlgxcwVWAukfGgXFWVAXLfprF2NepbNl0Fl 9Nq71TUW/YHQEHaAGOAkHvhGWLPnWuoIPKN7uXimnOn1I5QhygFd3MnFad6J3s8K6I tXybNE2aMgwEQ== Message-ID: Date: Sat, 23 Sep 2023 13:09:52 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH net-next 3/4] tcp_metrics: do not create an entry from tcp_init_metrics() Content-Language: en-US To: Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni Cc: Neal Cardwell , Yuchung Cheng , netdev@vger.kernel.org, eric.dumazet@gmail.com References: <20230922220356.3739090-1-edumazet@google.com> <20230922220356.3739090-4-edumazet@google.com> From: David Ahern In-Reply-To: <20230922220356.3739090-4-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/22/23 4:03 PM, Eric Dumazet wrote: > tcp_init_metrics() only wants to get metrics if they were > previously stored in the cache. Creating an entry is adding > useless costs, especially when tcp_no_metrics_save is set. > > Fixes: 51c5d0c4b169 ("tcp: Maintain dynamic metrics in local cache.") > Signed-off-by: Eric Dumazet > --- > net/ipv4/tcp_metrics.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: David Ahern