On Thu Sep 3, 2026 at 4:52 AM EDT, Tariq Toukan wrote: > From: Cosmin Ratiu <[email protected]> > > Add PSP conformance tests using the same gro helper binary as gro.py > does, but in --psp mode. SPIs are procured by psp_gro.py from a real PSP > device and handed off to the gro sender & receiver. The sender crafts > and encrypts packets in software, the receiver relies fully on the HW to > decrypt, decapsulate and do HW GRO. > > Because the NIC decrypts and decapsulates before the frames reach the > receiver AF_PACKET tap, it sees the plain frames and the assertions > remain exactly the same as gro.py. > > So these tests verify, at length, that the device does PSP HW-GRO the > same way as plain TCP. > > Additional PSP-specific tests are defined to check that GRO doesn't > merge packets across PSP versions, SPIs, encryption-status, etc. > > Some tests from gro.py are not included because they don't work: > - ip_csum: the checksum is recomputed by psp_dev_rcv(). > - tcp_csum: packets are marked with CHECKSUM_UNNECESSARY. > - ip_frag4/ip_frag6: PSP is incompatible with IP fragmentation. > - IPv6 extension header tests: PSP doesn't deal with IPv6 ext headers. > > Signed-off-by: Cosmin Ratiu <[email protected]> > Reviewed-by: Dragos Tatulea <[email protected]> > Signed-off-by: Tariq Toukan <[email protected]> > --- > .../testing/selftests/drivers/net/gro_lib.py | 14 +- > .../testing/selftests/drivers/net/hw/Makefile | 17 ++ > .../selftests/drivers/net/hw/psp_gro.py | 172 ++++++++++++++++++
There's a chance I don't use the config snippets correctly, but I don't include configs from parent directories. So maybe add CONFIG_INET_PSP=y to ./tools/testing/selftests/drivers/net/hw/config?

