From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05B034A2E3B for ; Fri, 4 Sep 2026 13:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529851; cv=none; b=kDNEyeWwdKGwL8VsUgfiwBYTZ4kFXACOBn0oSjPibzTR2gRS0OYn8dD1cmjy8hOKji35DAdXkQFb8Ektv4LWTdvTRSvuMH9PGvA41gPH84FW3tDaADr1T/XU33vSEqnjU0+fV902bwLd7ymuMdE2FcZjH5YHk1yr3u6Z2aD0Zqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529851; c=relaxed/simple; bh=Z8hNnyHSVmt549ei10OsDc7fux/5aK6L6Q+U/yY2ZJw=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=DjKbfAbCb+OZjaafdNTCtyntLqEWr46dAq+mVA8ClrXWHjDnCJkSVBa1row2IUNIdNZxPET0MQcocNLeAEs+JiuW5hTfe9kboXQ/g0kET1G7OcCJIve3ygI8vHz87ydc1/cSbzO0ZfJ4+NGsGl34RqrJE3eNl4siZR/LlBD2f3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TQFelx79; arc=none smtp.client-ip=209.85.160.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TQFelx79" Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-52eaeddc837so10025161cf.2 for ; Fri, 04 Sep 2026 06:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788529849; x=1789134649; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=RloxBmq1OFFdMW2QFzzJPyBKTHQtM11rCubg4Pmtdw0=; b=TQFelx79SVUXXk6lPuhJkCpNgaMkUrKUBvxqQfxohmyi9xBVmosK/MQjKHh6cJDyOc osRB1ymPJcn7Cv+hbYnmld0znVmwVN20tnZZas/tFaar2aXm2/nV++oBqfK1VEkvVwvk FQ2FAmermUrsgjpeDDBOCnSofvfnRQ33piuv0X8JVt5fzJo5EVy7DxWUHVwAHmFbLDkd QJ9R9g6p3baFaj4+zUR1I2OWxDOVzISlhO3wADzQkzwf9PJ2CejpVpInaA6xQksstza2 VNqFu7xMhyFVGbwoRwQVDe2dhEOK/lGGa2GmGTjDnxhc1GLT7kw24Nsod6YXjDxPJX/w KLKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788529849; x=1789134649; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RloxBmq1OFFdMW2QFzzJPyBKTHQtM11rCubg4Pmtdw0=; b=VCxp1832E8hDlaH5hSQali8gSvofCl69w3tJUFS+Eo7ouEdmeValXK5xR/Fo51dczq Ez/39c2MZuBc9S4xpafbCY8vBQ2Z5K4/a2Yy0KKbAOWxNylQcEWVTz7EN7LdpqLWbiNl u3xtX6/JTuE+iK6TgYBGhfrgWdoL7Bo0ATA4oXd+3hSpLHDpz5nEAzDi65/4kPbvZVs7 XR6vBSyWzQg9o+RqlOyjxAjtH+3YgEi3y4yyaPECOcnEH2F3DxONJLIODLq8dDlObDPy 00Cp3t3P/LmYle7pltI3YtBZO6Pihev9h4/w3yhMcVAc7rlyNUYtyftVEu5cxAxejtz2 tbVQ== X-Forwarded-Encrypted: i=1; AKwUvBzMkHBT3awUETpy6PoIrklVkbrHdArnYzHsNF67DBX7wFjfpSBRy2sZ4/zwoPt0P6U0f8N8CjFgpK6JlD8IWhs=@vger.kernel.org X-Gm-Message-State: AFuF++lyPcqrFbuIGbAkCFGWIpn3auh4z9i3dBr9wSVyLv5b1/xAMuCE ZcCha5Ug7LgqR9jEVc8zalPRRKwZUDPsUd0O77uxQTERZQoUBCAENhM5 X-Gm-Gg: AYBFou0csAfRPBNd74N3QPxBHYop53HCZCZTzLsW6ZdrYsnGEawtHjko+ETiKO1gAYk X3kkIYAaU1+HvISJmSLtWwCt1Rsdlxl/hwZK4Nan1db7d/OWjYjLcSG2D5ln0bxBd8P78C4q6a5 XcTQQZ5MrTeogwFqkTnpR0T0uyfw8gq4SSfl4W62jXPMny23v6ZJ58DMgch45aho2O+iBfq/Yoq iJL/ff3+FbvGJ/vThDYbWIfK9XsuxnHIJVIKYJRQdGsl6a4amoEIOKxbPe05NQ5AV8u5Fl2kDyX MDo6iFt/Ca4C0vPyJz55mXwZ/qK3+7Z/2vRoEhS4Y7ZjKsloBJYNH8490FFvVIxT6YwfBfTNiYC KdnY8xP0/TW3IMprazz3yrqwuns/EwwX8VoAtlb8bUgXdM5h8wFurCqV5iBAty2FgqhPA1ikPFN Vd2MKTqBkk43sKV4phkuNQLziIPf90LsCPfXxyzYFyx1YBRPNHZCm5w65RPZ00DaHuJhb1xCBON jFc X-Received: by 2002:ac8:5945:0:b0:530:42d4:4c9a with SMTP id d75a77b69052e-53054a34924mr61953591cf.44.1788529848638; Fri, 04 Sep 2026 06:50:48 -0700 (PDT) Received: from localhost ([2600:4040:9399:4000:e553:72e5:7d37:c7ef]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-910406940f3sm20714426d6.38.2026.09.04.06.50.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Sep 2026 06:50:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Sep 2026 09:50:45 -0400 Message-Id: From: "Daniel Zahka" To: "Tariq Toukan" , "Andrew Lunn" , "David S. Miller" , "Eric Dumazet" , "Jakub Kicinski" , , "Paolo Abeni" , "Sabrina Dubroca" Cc: "Aleksandr Loktionov" , "Alexei Lazar" , "Alexei Starovoitov" , "Allison Henderson" , "Antonio Quartulli" , "Anubhav Singh" , "Bobby Eshleman" , "Boris Pismenny" , , "Carolina Jubran" , "Chris Mi" , "Cosmin Ratiu" , "Daniel Borkmann" , "Daniel Zahka" , "David Wei" , "Doruk Tan Ozturk" , "Dragos Tatulea" , "Gal Pressman" , "Jacob Keller" , "Jesper Dangaard Brouer" , "Jianbo Liu" , "John Fastabend" , "Kees Cook" , "Lama Kayal" , "Leon Romanovsky" , "open list" , , , "Mark Bloch" , "Matthieu Baerts (NGI0)" , "Patrisious Haddad" , "Petr Machata" , "Raed Salem" , "Rahul Rameshbabu" , "Richard Gobert" , "Saeed Mahameed" , "Shuah Khan" , "Shuah Khan" , "Simon Horman" , "Stanislav Fomichev" , "Stanislav Fomichev" , "Willem de Bruijn" , "Willem de Bruijn" Subject: Re: [PATCH net-next V3 15/15] selftests: drv-net: Add PSP HW GRO conformance tests X-Mailer: aerc 0.21.0-threadmapfix References: <20260903085215.3691657-1-tariqt@nvidia.com> <20260903085215.3691657-16-tariqt@nvidia.com> In-Reply-To: <20260903085215.3691657-16-tariqt@nvidia.com> On Thu Sep 3, 2026 at 4:52 AM EDT, Tariq Toukan wrote: > From: Cosmin Ratiu > > 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 > Reviewed-by: Dragos Tatulea > Signed-off-by: Tariq Toukan > --- > .../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=3Dy to ./tools/testing/selftests/drivers/net/hw/config?