RE: [PATCH net-next V3 14/15] selftests: net: gro: Add PSP encapsulation and encryption
From: Loktionov, Aleksandr <hidden>
Date: 2026-09-03 10:26:33
Also in:
bpf, linux-kselftest, linux-rdma, lkml
-----Original Message----- From: Tariq Toukan <tariqt@nvidia.com> Sent: Thursday, September 3, 2026 10:52 AM To: Andrew Lunn <andrew+netdev@lunn.ch>; David S. Miller [off-list ref]; Eric Dumazet [off-list ref]; Jakub Kicinski [off-list ref]; netdev@vger.kernel.org; Paolo Abeni [off-list ref]; Sabrina Dubroca [off-list ref] Cc: Loktionov, Aleksandr <redacted>; Alexei Lazar [off-list ref]; Alexei Starovoitov [off-list ref]; Allison Henderson [off-list ref]; Antonio Quartulli [off-list ref]; Anubhav Singh [off-list ref]; Bobby Eshleman [off-list ref]; Boris Pismenny [off-list ref]; bpf@vger.kernel.org; Carolina Jubran [off-list ref]; Chris Mi [off-list ref]; Cosmin Ratiu [off-list ref]; Daniel Borkmann [off-list ref]; Daniel Zahka [off-list ref]; David Wei [off-list ref]; Doruk Tan Ozturk [off-list ref]; Dragos Tatulea [off-list ref]; Gal Pressman [off-list ref]; Keller, Jacob E [off-list ref]; Jesper Dangaard Brouer [off-list ref]; Jianbo Liu [off-list ref]; John Fastabend [off-list ref]; Kees Cook [off-list ref]; Lama Kayal [off-list ref]; Leon Romanovsky [off-list ref]; open list [off-list ref]; linux-kselftest@vger.kernel.org; linux-rdma@vger.kernel.org; Mark Bloch [off-list ref]; Matthieu Baerts (NGI0) [off-list ref]; Patrisious Haddad [off-list ref]; Petr Machata [off-list ref]; Raed Salem [off-list ref]; Rahul Rameshbabu [off-list ref]; Richard Gobert [off-list ref]; Saeed Mahameed [off-list ref]; Shuah Khan [off-list ref]; Shuah Khan [off-list ref]; Simon Horman [off-list ref]; Stanislav Fomichev [off-list ref]; Stanislav Fomichev [off-list ref]; Tariq Toukan [off-list ref]; Willem de Bruijn [off-list ref]; Willem de Bruijn [off-list ref] Subject: [PATCH net-next V3 14/15] selftests: net: gro: Add PSP encapsulation and encryption From: Cosmin Ratiu <redacted> Add a PSP mode which wraps every transmitted frame in PSP transport mode and encrypts them in SW with the help of OpenSSL. The receiving NIC decrypts and decapsulates, so the frame the receiver sees on its AF_PACKET socket is identical to the non-PSP one and every geometry assertion in this file applies unchanged. Sender packet construction is unchange, PSP uses a different buffer to
Probably 'is unchange,' -> 'is unchanged,' ? Reviewed-by: Aleksandr Loktionov <redacted>
quoted hunk ↗ jump to hunk
avoid double encryption. A few PSP-only cases are added: psp_spi_diff, psp_ver_diff, psp_mixed, to cover coalescing scenarios which only exist for PSP. OpenSSL is optional and scoped to this binary: gro is deployed by several suites, so a missing libcrypto costs only the PSP mode. Signed-off-by: Cosmin Ratiu <redacted> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> --- tools/testing/selftests/net/lib/Makefile | 16 ++ tools/testing/selftests/net/lib/gro.c | 337 ++++++++++++++++++++++- 2 files changed, 351 insertions(+), 2 deletions(-)diff --git a/tools/testing/selftests/net/lib/Makefileb/tools/testing/selftests/net/lib/Makefile index ff83603397d0..ce67e8d3e4f6 100644--- a/tools/testing/selftests/net/lib/Makefile +++ b/tools/testing/selftests/net/lib/Makefile@@ -22,4 +22,20 @@ TEST_INCLUDES := $(wildcard py/*.py sh/*.sh) include ../../lib.mk
...
read_MAC(src_mac, smac); read_MAC(dst_mac, dmac); -- 2.44.0