From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 0625A4A33FA for ; Fri, 4 Sep 2026 13:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529852; cv=none; b=R//yyceqFFRmCVoRoogGWwJ0QhrKVba3n/tYDyoYugRYyvwOiTNtCOUngCiP+78JIxEOPkjbK9Lp5MwEJwssQwEGHl7ViXpnyoTV+J0sSIfQ2LN/i9/xV/+5u152e/6nHuxRLsEK67m74qLBpPSAgfSo74Qr0XSVPQFGQ4aTJC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529852; 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=ngEeiE5D92cTTfmRz7+H9Uj+pDBbtwrH2TdJcOIZTdsRf5JLKwIEe01A02NZrsKx01Hrcp8qiTJ/CCo4tyjjPBsx2RT5ByYpkFU83uU5pFsQU6miwTrsw99v2kHpNWO91/HOrZinYZAT+DbjvobJ2aBOXs2BHj32tmnySdEE1wM= 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.171 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-f171.google.com with SMTP id d75a77b69052e-51bfe810293so10672211cf.1 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=jo59jDEZ2rsoPqSA7P//YWARDXgf3a9mptsWHQ+9Al3JLHgjDTe9nSiQqbtX1gapGY 3HQmgzmLCxetgSTEGP8LCbnn/OlkOX0RCaeF6toTrqB6RANi7fycv0agKZ01/32YAdHT YnjFsGS6M1Mm+PBjV4jQ6jDjD7jYvk+d7/MhULyH873T1CGDQF3w+wbty3HkLvtA8OpM 4N65vqgCQkRhNy5LSWkEXs/yn8nbLLaPI3b2CUtUGTuNoBKTI+zuMR3nSBJwj0YtROcj r4IS4qoHBcQgn3HcrDrJy1xEl7DUNZK+h7SpFuFP1+XaPQgiAVGn26+pGHlJwTgqB76O /3wg== X-Forwarded-Encrypted: i=1; AKwUvBzrQbOqWWxjVt1sPuRjgeS/LOsTmCTZVUZdwT1JxByD20R+5N8Ppr6LHxW3+F1ZnLLMpeLDIxfjJTurfWg=@vger.kernel.org X-Gm-Message-State: AFuF++n43Zy0GMJA1qAknXWBrM3xiTh/UwZ69I4LWQPRKMs9Cy74vzDR vrXncfFmmfXogq1Iksfg/IPlGojAu/EquwZNKWocDD8xnO2cGg7KQPSR X-Gm-Gg: AYBFou3eo+WIMqhrmt9xtFlkCjPTUXBZKSguFLmd2EHTVrWkwvMMJYo50eVH1u1/1dU S7sq/ttlMW9LO1SQWZ934/sgWLBJTIUeoev/egvET8/d1N4Lv9yW5WLacMGrk3fD+LHKrgoG6cF 63WPHUdQ9cSzDUwcWMROpi1YS1Orv38q2wOxv4f507JibVuzW7JFxKSGvzmSWAcPChlsBWc1gQi 4G6LWyE5xY3FId8NUqE8A4MyEUXHmlhqLuO/oFwIokdRMImUhQfECG91HJxZlXo+OCSV9jrmmPg iTkd60pjTdhJkHwl5yBmUfx01QP4+HRzrIr3A5NAR+SUZRAsHjVGqH6mHzASbva5bFTxHMHKZv8 L4vIZN5Hpfp3vmxXO4hmHvyMUqMVMR4E50yML1iyCxL1VzSEzW6uzyroJV6yruLfVLE1CtIXlNw IbkmBfhmWVuYWPHEF/hYLG0MbBpqu7VBo1KfBLyR31jW21hP68lcV00ecDhcelEb0UNytIpdOvZ GCm 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-kernel@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?