From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795910230; b=Tl+ogoDNm27KijPpaqA2k0BH2l68MSWLf7mWLg7336Hxq2fSuJmBHC9OvXsx86Yt/RJN YRf11ksAte3ij9SCN6Es9jXUsw3Y30mF1A58hycD22eOXlBoHW+5sQD8Y12nS1OtYpsAx mTYVRWbCHyY3SepVIE11dW7q/cvrtUkZyyzcwfCgPdqtBLm25UjrkZ/Z3wfi3GkoZfzJo SJNQMV3+ql0TWhFlpGaUoTZw4qWk/QxA2UzzBsKQVK0la1LYk3EgY7H1T5nM1lOozZcM1 oI0np6pPaNvnySg12Nd6PeSiQoyycTlqFu8xVs0Zj8/TejOHy2wsCn8pprA86RMOV8Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795910230; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=zufKj8NVDpUdwzunr6IEJDPv3zzqMx98x76OlGu6Me0=; b=Ww27rze8GTfcwy4iFP42pGApIGDHx2D0jWfBuIj6Jx1RVSR5WNrMj4q3vUICqDoRoKCT sbuiyXejyiUmPFkh0HvQXO92pbRIxbdgZ7pOLhWNMI8VTMmLfr3ulqzfK5WH2lRF/ii++ CL9bUTNLDIBUqVOPJMnO3fAUaqRjhYyzb5RFZMe/aeM53gnJYpvxy+BB0UAwLD6bWAszT Yauj4bv7U3QbCr5wtYy6IyCdxZIMwtk8LcOaXccsx4ELojSmjhX3bgvVgcjGe0qSg/Fpv 12HBvceqPhJag8JLbxAk64neJkDVB42l+WZdBRHj+Q2v0fvaqS6p2SenU8cjWsFQfbQ== 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=GBw7prVJ; arc=none smtp.remote-ip=100.103.45.18 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 605A1606A326; Sat, 28 Nov 2026 23:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GBw7prVJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BEBE1F00897; Sat, 28 Nov 2026 23:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795910230; bh=zufKj8NVDpUdwzunr6IEJDPv3zzqMx98x76OlGu6Me0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=GBw7prVJLSmYcyH8cuw1xN5qTbaWFwO9IWhaBKDyp5j/jhjYtzKPjcF4ReF0j45mF 6WxSFJUbuUJMqcIqvSHenEqQpnJkddGiDQZavjDdDzv69s1+M7HuxG6blq0CzBulk+ tcCuMVfuMp1pN0jVjL5EpeVffij15PnoXvvw0xJmWl7SOIB5SlSkYpMCNlNo5O4OqH uPX7+4hhZcRp1xt+mZlpC3zwF0mu28UHkQjnvq1I6ZrM0mKagp0wfvkMQ/BPW6aMn8 I56BJF9DN0R7lwts2RcUGt8OPo1vERzJYOxFcPdz5P7jc6uY6jZrq7BQkr9Ehd2jwr L1bS5gSYirFBQ== Subject: Re: [PATCH net-next v3 08/12] selftests: drv-net: psp: test socket-less associations and the tc psp action From: netdev-bot+sashiko@kernel.org To: toddfreed@meta.com Cc: netdev@vger.kernel.org, davem@davemloft.net, andrew+netdev@lunn.ch, bjorn@kernel.org, borisp@nvidia.com, cratiu@nvidia.com, daniel.zahka@gmail.com, donald.hunter@gmail.com, dtatulea@nvidia.com, edumazet@kernel.org, kuba@kernel.org, jhs@mojatatu.com, jiri@resnulli.us, leon@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rdma@vger.kernel.org, mbloch@nvidia.com, pabeni@redhat.com, pctammela@mojatatu.com, saeedm@nvidia.com, horms@kernel.org, tariqt@nvidia.com, weiwan@google.com, willemdebruijn.kernel@gmail.com, kuniyu@google.com, bpf@vger.kernel.org, ast@fiberby.net, qingfang.deng@linux.dev, toke@redhat.com, shuah@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, matttbe@kernel.org, dsahern@kernel.org, j.koeppeler@tu-berlin.de, hangbin.liu@linux.dev Date: Sat, 28 Nov 2026 23:57:07 +0000 Message-ID: <179591022761.3135.9512861612776078903@kernel.org> In-Reply-To: <20261124221758.3230929-9-toddfreed@meta.com> References: <20261124221758.3230929-9-toddfreed@meta.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] In tools/testing/selftests/drivers/net/psp.py, the docstring of assoc_sockless_rotations() says it checks that socket-less Tx… -- selftests: drv-net: psp: test socket-less associations and the tc psp action This adds selftests for the socket-less PSP netlink commands (rx-spi-alloc, assoc-add/get/dump/del) and for the tc psp action and the flower psp matches. The data path tests connect a plain TCP socket to a PSP socket of the responder and use tc for encap and decap. The config also gains DUMMY, NET_ACT_MIRRED and NET_ACT_PSP. > diff --git a/tools/testing/selftests/drivers/net/psp.py b/tools/testing/selftests/drivers/net/psp.py > index 67577f722b3b8..936ac37dd9133 100755 > --- a/tools/testing/selftests/drivers/net/psp.py > +++ b/tools/testing/selftests/drivers/net/psp.py [ ... ] > @@ -938,6 +940,504 @@ def data_mss_adjust(cfg, ipver): [ ... ] > +def assoc_sockless_rotations(cfg): > + """ Test rx-spi-alloc reports the key rotations, Tx assocs survive them """ > + _init_psp_dev(cfg) > + > + rx, tx = _sockless_assocs(cfg) > + rotations = _get_stat(cfg, 'key-rotations') > + ksft_eq(rx['key-rotations'], rotations) > + for i in range(2): > + cfg.pspnl.key_rotate({"id": cfg.psp_dev_id}) > + new = cfg.pspnl.rx_spi_alloc({"dev-id": cfg.psp_dev_id, > + "version": 0}) > + ksft_eq(new['key-rotations'], rotations + i + 1) > + # A Tx assoc holds the peer's key, which the device key rotation > + # doesn't affect > + assoc = cfg.pspnl.assoc_get({"id": tx['id']}) > + ksft_eq(assoc['tx-key'], {'spi': rx['rx-key']['spi']}) [Severity: Low] The docstring says the test checks that Tx assocs survive the rotations. Is this final check strong enough to catch a regression there? assoc_get() finds the association by id in the psp_assocs xarray and reports pas->tx.spi. psp_assocs_key_rotated() changes neither of these. Suppose psp_nl_assoc_add_doit() stopped doing this: list_move_tail(&pas->assocs_list, &psd->sockless_assocs); Then the socket-less association would stay on psd->active_assocs. The first rotation would splice it to prev_assocs, and the second would run this in psp_assocs_key_rotated(): list_for_each_entry_safe(pas, next, &psd->prev_assocs, assocs_list) { pas->generation |= ~PSP_GEN_VALID_MASK; pas->prev_generation |= ~PSP_GEN_VALID_MASK; psd->stats.stales++; } That would move the association to stale_assocs. stale-events would then count the socket-less Tx association, but this test would still pass. Could the test also compare stale-events before and after the rotations? Another option is to send data through a tc encap rule that uses the Tx association after the rotations. [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124221758.3230929-1-toddfreed%40meta.com