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 86C48219300 for ; Mon, 7 Jul 2025 21:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751922636; cv=none; b=f+ZooILTHK6PsvUi9a3rDrccDm9EgG1pItDSIozJ6wpEH4pRqZvC9vL5IcALSvJlTu65BfXIxs6M5oe7Mc6SgdIYS2ybJNnECoB+U9fpJjy19Rg1rHMtnvAGflwPF6QT0hm7P3eA2LF5WZsQGf61rdXwa5RLIvN+I+6xsJmfH1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751922636; c=relaxed/simple; bh=c0DJkAJx/ECBfUe8SsVB3Usym7EWpuZ/BH5DsypIWAw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qu2HmGcpxOZ6KFL5mwM6hCpv9ISLqMXC73NWgmEQFsf/eNj2D1mvy3+riKNuyIbNTN+2oI87eJJyJgHD/yeVreTeWAEB5EdexYVsXhIx+sIoI50VPQ76LXBKtRLkjtH12kRQRrIkdBaKZ54mFuv33avMVMbKMKnudYAicREQohs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OIk+2GFM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OIk+2GFM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BD00C4CEE3; Mon, 7 Jul 2025 21:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751922636; bh=c0DJkAJx/ECBfUe8SsVB3Usym7EWpuZ/BH5DsypIWAw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OIk+2GFMjHNJ05zicv+2KuAT6bz/A9hVAJn80N7vPKiYi2CRXosraJeXhIHtdv7bw 6nrp7ORgCOj25RcrbLxg36jjaGui4mLh6AxEtYY6NRuMfjv+uhrLwyLilyLhWYcGtO wCSISE/+u0BhcLaTIQBx+P2kHtRK+l7S/P1EoRjwjW/S+BfGnvZvJ8+XjlAG0fONJw l9AGvQmh44GCx+BAnjUhUKiYhHTIe4HjFYnaQTX8oMZbTrPY0e886AcorKQQh6mmA6 xdlfGF2u9UkkdwbxQg8c+SxK/Hll8//RBjTiopKco2WkIier9f2x5c+7MCOXDgmRpH b7EtwwiA7rFEQ== Date: Mon, 7 Jul 2025 14:10:34 -0700 From: Jakub Kicinski To: Willem de Bruijn Cc: Daniel Zahka , Donald Hunter , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Jonathan Corbet , Andrew Lunn , Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Boris Pismenny , Kuniyuki Iwashima , Willem de Bruijn , David Ahern , Neal Cardwell , Patrisious Haddad , Raed Salem , Jianbo Liu , Dragos Tatulea , Rahul Rameshbabu , Stanislav Fomichev , Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdl?= =?UTF-8?B?bnNlbg==?= , Alexander Lobakin , Jacob Keller , netdev@vger.kernel.org Subject: Re: [PATCH v3 08/19] net: psp: add socket security association code Message-ID: <20250707141034.2367cbc1@kernel.org> In-Reply-To: <686aa894a8b6e_3ad0f32946d@willemb.c.googlers.com.notmuch> References: <20250702171326.3265825-1-daniel.zahka@gmail.com> <20250702171326.3265825-9-daniel.zahka@gmail.com> <686aa894a8b6e_3ad0f32946d@willemb.c.googlers.com.notmuch> 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-Transfer-Encoding: 7bit On Sun, 06 Jul 2025 12:47:16 -0400 Willem de Bruijn wrote: > > + - rx-key > > + pre: psp-assoc-device-get-locked > > + post: psp-device-unlock > > + - > > + name: tx-assoc > > + doc: Add a PSP Tx association. > > + attribute-set: assoc > > + do: > > + request: > > + attributes: > > + - dev-id > > + - version > > Version must be the same for rx and tx alloc. It is already set for > rx, so no need to pass explicitly. Just adds the need to for a sanity > check in the handler. I think because version implies the key size. No strong preference but without the version it's harder to split the request processing into pure parsing and operating on kernel objects (under relevant locks).