Re: [PATCH net-next v3 04/12] psp: add support for socket-less psp associations
From: Todd Bert Freed
Date: Tue Dec 01 2026 - 12:33:27 EST
> > The kernel doesn't enforce key rotation for socket-less Rx the way it
> > does for socket associations. A tc filter which matches a SPI of one
> > generation will also match that SPI if subsequently re-used in another
> > generation. It is up to userspace to deal with this eventuality by
> > removing such rules in time. Userspace may subscribe to rotation
> > notifications for this purpose.
>
> Could you talk about the rationale here? rx-spi-alloc returns the key
> rotations, why not make the generation part of the flower match?
Thanks for taking a look. The reason for doing it this way, is to enable
hardware offload. The device can check the psp spi, psp version
(packet fields), and psp device (it won't be seeing the packet otherwise).
The rotations counter is stored on the psp device object (psd->stats).
The device would not be able to perform a check against that.
-Todd