Article View: linux.kernel.netdev
Article #8376Re: [PATCH net-next v2 4/7] psp: add core tracked stat for outstanding tx keys
From: Jakub Kicinski
Date: Wed, 28 Oct 2026 22:29
Date: Wed, 28 Oct 2026 22:29
21 lines
9070 bytes
9070 bytes
On Wed, 28 Oct 2026 17:16:17 +0530 Kiran Kella wrote: > > + - > > + name: tx-key-count > > + type: uint > > + doc: | > > + Current number of Tx keys installed on the device. > > + Only visible if the driver stores keys on device. > > + Kernel statistic. > > > > Maybe it is good to have a counter that denotes the number of PSP > sessions set up on a device, which is managed in > psp_dev_tx_key_add/psp_dev_tx_key_del operations similar to the > tx-key-count. That way, even in non-SADB drivers the user can know the > scale of the PSP sessions set up on a device at any time. AFAIR the thinking was to also implicitly flag that the device has an SADB here. So this stat should probably be called tx-sadb-key-count. We couldn't think of a reason to count the tx keys when SADB is not present. Rx keys? maybe, because of SPI exhaustion. Tx keys - why..
Technical Details
Message-ID:
<20261028152950.6624ee83@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353063-linux-kernel-netdev=dewy.ruReferences:
<20261009-psp-v2-0-5596ab50f677@gmail.com> <20261009-psp-v2-4-5596ab50f677@gmail.com> <CAPHeo3erVfzLE0wTmz4=0HKWdOL63+7W2KXO67OuEfRXhf_M8Q@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353063-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 4/7] psp: add core tracked stat for outstanding tx keys Date: Wed, 28 Oct 2026 15:29:50 -0700 Organization: Usenet Network Message-ID: <20261028152950.6624ee83@kernel.org> References: <20261009-psp-v2-0-5596ab50f677@gmail.com> <20261009-psp-v2-4-5596ab50f677@gmail.com> <CAPHeo3erVfzLE0wTmz4=0HKWdOL63+7W2KXO67OuEfRXhf_M8Q@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1884375"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ogMlcICKke2GdZjoWtZxj1s6Ne0= sha256:jKqmcCbJjMXL6OV5KPwqYHBQDYWPzFSZrZaVwlqOe6o= sha1:u7FpIEnjFnb6dG3tGq9N+n/YPgk= sha256:7iFlTpwLv0mdZHBrKlfyyPSeDzI9qs8iXRvh7kmo32U= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 517FD125C4E; Thu, 29 Oct 2026 01:32:26 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hZklquM0dy4C; Thu, 29 Oct 2026 01:32:23 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353063-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 742F3125C4D; Thu, 29 Oct 2026 01:32:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id CE55129E03; Wed, 28 Oct 2026 22:29:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793226598; b=GhdI4ZfbqIDyV6VDS+iXVBweYJazQYMa7ivbVJjpV5p5eF5BwZhwtIKOzDjFutiLo9KC GAHVNSR4JV91DDyDY15ZBivmgp7Z4Dgik0FYWN0LdVzd+w96z6Ie9HB3UQ3n15PbVqXZ9 YWL0H+egDp+jUEU/ZxkSnoOQKAnCBiQilMskwBtZbDEOyUQIbAAoK0hahzB2BaqjAL6ub gvbYe0DpfLjsOrEi7jJQ8wCpV3sWAbihjNoJRV5cU8Vh4aEcwEOwS1fd8Jwc48PsMcIik ltxOsUEHuAQPB9WOGZG49+452oeFAhxxtDHZnm+LboAoQauEMlzDjwx8/0FftFHqzww== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793226598; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=CnLgalneGXfo1o/H5Wfgn+z4AXuIaw49pj0NsQlWZtw=; b=D0O/Fn3u/CGLlylG2uXHI9fIaG7w9VsYRawdv0qd7/7+091fhRW1tqpe69ThGDHFh3vy RoDtv3ZBZRVYRfL0ob7YMijgVcAdNRl6aNVu5UdSCUUALaNocdCDEghVhQrS2t+AQqsh6 +rjHBbrgA9qkMOoYxL2qBGGgZw6LgK1L/rbze7nY92+8IDj26nimf2KKqQLpCBW+tU9kE PJtcuvMRnTJR2E+QBi77YUpqPughD7nbvPxXo70oR7NCIKipVpW+NnMjRZ7Vlpg5snouz 8seKpPx/Hoac/zdYmbwpEDd2hd9ptMAOxtQWoctOdjIU7QAsSVL0tPkAWxDeS+SyZzQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hFhsS9if; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5073F606A326; Wed, 28 Oct 2026 22:29:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hFhsS9if X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793226592; b=okDF1fzCVL3pmFM7HuHtI7CzUPC68Op1GRorTin8LAVrj9IXjfTUBxAf4LHryIuySBj9 UVaBt5eHpmgiKRHZgKnkf+cQzYFNpr1lG+VqgjiIm8buIzc0SGxzqg7Q746iv2XEHbVEL m9teqfb2l6NAlR2CEoaVTwrG0JFnTGmJMvjC8Dob+yYFLIsBDMpT9HJHZjYX/AqSmlEg2 zcgflJsXh3UQ3g5qHPY6rvKL3+mA/58ApjQ02THBM6+Iea0gfCj7NtsruQBe3d0jFuk/R LmogvsFNoYgIY86TBg7vbiBB2xAFh8E0j2yHnqInlq1mbCtMnPhGQFbZOhlOsoApqCA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793226592; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=CnLgalneGXfo1o/H5Wfgn+z4AXuIaw49pj0NsQlWZtw=; b=2/GsoWuMlHQM66J1zC0XRw5HFAvkbdjklG+TvKKEVQx0UsXiDL/HrD4G3ED1dzNaBwnY XHa1jXFCqIg63ZB6RnRe2q/OVjvY0I9D52Y7GexwYQG5/3n2GP8E4LTYLmalzGmstZ6uv Vf1d4zms97y5GsbHKrpTJLgnCJQS6FzCdV5CTG+Fa0mA1vWwhR2yRtwpk3Y9LFc4FNziH AL0r/BBPDeCo+yxA7/fc+UEbm2og8z1GeWLjex2lrBYVCOH561maSxzsobaLBzprRx82B aV9FL2XxRHlGHGXaexef1G5We8HJmYneXvUiGZeyCb9OsLxypP8cEOhVVvdA5/sk3bw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=hFhsS9if; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D02D606A31A; Wed, 28 Oct 2026 22:29:51 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F7781F01825; Wed, 28 Oct 2026 22:29:51 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793226591; bh=CnLgalneGXfo1o/H5Wfgn+z4AXuIaw49pj0NsQlWZtw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=hFhsS9ifGXOMEgzaP/cGN1hL3KZKC2VqoCTIdggWorbzH0xFkpZ3mG/is+S+r72H/ Xdu4l3Ftr8aVWc5OR+RUEpXthW2RywXpp91PNwc5Pw2BokJWp5IEAjxDygWka2Bzyp 8O5QDGbyI6kT3IqW32pzKbpdmYqT7XStX9JmIAyF6djhYfgKsGuvgUJ7lqjB6DXnDa +t0w0iuA3qq0pkQJ1jtPan1+RCLD6rGNEiKA8uhe1Jhpqwu+W/Llppi8uokBV6EQcm W5DakhVbX2twXyQdzxdc2SfHVs+zZ9YMV2UFTzHSQbtQfRhICmu9Tj8wkxaevq8IUF RqpvCH5ZE+W9Q== X-Cc: Daniel Zahka <daniel.zahka@gmail.com>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, Randy Dunlap <rdunlap@infradead.org>, Donald Hunter <donald.hunter@gmail.com>, Andrew Lunn <andrew+netdev@lunn.ch>, Shuah Khan <shuah@kernel.org>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org X-In-Reply-To: <CAPHeo3erVfzLE0wTmz4=0HKWdOL63+7W2KXO67OuEfRXhf_M8Q@mail.gmail.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list