From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 408E3C001B0 for ; Mon, 14 Aug 2023 15:22:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231932AbjHNPVc (ORCPT ); Mon, 14 Aug 2023 11:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232920AbjHNPVb (ORCPT ); Mon, 14 Aug 2023 11:21:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20BAEDA for ; Mon, 14 Aug 2023 08:21:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A84F2615FB for ; Mon, 14 Aug 2023 15:21:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A63BC433C8; Mon, 14 Aug 2023 15:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692026490; bh=21qKNzNxPDfwgDE8vrKO7hvz6hkx7i2KtgQh0A7uQEY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QlLnqAwod8qr+qnrWizKJLr0QAlVPJe7byBm615TN6deShPujk5mavGHpOcZJWWcA eIfqL4CF/PqebRzPhNeWjiPUUjJowwblTaBV1MzBFb1suIpIRanEhSW996sg+briwU B20Vd88jQ3COmKHrRRTOiZUUnrXEroU7SoHMVBTA5ebiRYxtKjS9KeRQWY0rmaVCDa TTqK/CZLciQkiP6ovrHFtrgSssanGyLUOIZW4RX32mokX200wTtZDy3qZha/PCyZT9 Df2ebIMWcezUDm6gs3cMxAK9RvJnEQCsMW0X73bjx/UqzIbS/jw7MXOYpgG+6FxDUX nEyp0ewPF5Ngg== Date: Mon, 14 Aug 2023 08:21:28 -0700 From: Jakub Kicinski To: Sabrina Dubroca Cc: netdev@vger.kernel.org, Vadim Fedorenko , Frantisek Krenzelok , Kuniyuki Iwashima , Apoorv Kothari , Boris Pismenny , John Fastabend , Shuah Khan , linux-kselftest@vger.kernel.org, Gal Pressman , Marcel Holtmann Subject: Re: [PATCH net-next v3 3/6] tls: implement rekey for TLS1.3 Message-ID: <20230814082128.632d2b03@kernel.org> In-Reply-To: References: <20230811184347.1f7077a9@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Mon, 14 Aug 2023 17:06:10 +0200 Sabrina Dubroca wrote: > 2023-08-11, 18:43:47 -0700, Jakub Kicinski wrote: > > On Wed, 9 Aug 2023 14:58:52 +0200 Sabrina Dubroca wrote: > > > TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSRXSW); > > > TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSCURRRXSW); > > > conf = TLS_SW; > > > > Should we add a statistic for rekeying? > > Hmpf, at least I shouldn't be incrementing the existing stats on every > update, especially not TLSCURR* :/ > > I don't see much benefit in tracking succesful rekeys. Failed rekeys > seem more interesting to me. What would we get from counting succesful > rekeys? No huge benefit from counting rekeys, the main (only?) one I see is that when user reports issues we can see whether rekeys were involved (given that they are fairly rare). It could help narrow down triage.