From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (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 0498C4A2A7F for ; Fri, 4 Sep 2026 13:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788529851; cv=none; b=ONb6gDS+wB2B6BQrnQ42ujlX5iXh2YKEC1nZg4m1g7oxMOM4MmeYVcfKjAA+CwPM8sZEqjxEsitww1dwTb99KYHuXLgxE6+Qg/h0Tw0bTKS4cFegL0S1wz8rPIjh9o1n2XuTDP2ZRA1rGuKY369IV6vnZAupCf14+m55zEAh2BA= 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.176 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-f176.google.com with SMTP id d75a77b69052e-5300bdf61d9so12716931cf.3 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=fFW1W2QNxnzMhhfr16synJu994JpsQg54pyZIUwzRYxRo1055q6TzSWDzo5kqStDWL 5PxOmQIYxA35qx8RCd+8cla0l4kmpIQXQulZo19nZKRfTXFL3+NKVpQ5WXwFfyTafDPR ilHdA8NUZSiDH0Ur6aD1kErDWjdncfjx/WmlDHdQRw6tz7YhKcvq67mm3BOWSaduAxdQ NrBNC8NvWk/AwQyZxsvAwokZD1dqyrGzW8rpnSX24S7NqMxcuQsSlTUPjt1oPuvJRCNY GLP2V/LvjrukbkrR/fD8JWrvLqeLWUE86JCvNb8XE5SdTyQXMFSngwsi1rPZztau1c64 2SJg== X-Forwarded-Encrypted: i=1; AKwUvBzyo5hFv62/PYfJv2gYdemJKPD404yzQxX0PwDdKzAwwEPQipRLaqT2iJczb/vy6aKiGiVqh/lBUpvc@vger.kernel.org X-Gm-Message-State: AFuF++maMqUWjwH2SCYW0QSc1tLWtA3/uHDsRm1rdgyp7HtmxM0jR3qU pXo4V/nwu6m8aKaYjTDTczY1Qu8r26CSd3ri8ZhYll4sfanONFD6PvcR X-Gm-Gg: AYBFou2uavif7J60tUGt76czM3lGXmxTtBPWVuYQ7SHlZR3W+SMwSU6uu2IT/q+fKbI cS4BVzRdFC7hPsIuvaGnJGKjdBuBhpMvad3kgV040MPk/K4DfhAEpqN7F+p5guz4Wyk43UH7CE8 a2j8T5BFmhmEe69RXllpjmHkgrPH59NMQb3R3z5eidSmR5X52ENewyo6bo76dg8DTnaJY9YPp/Y Ytwsk4Pfo8UFlQzmIxKMPBLLKbJpbNduRg+sQVTMJiOsCUPDjNvLvKez3MlqLsh7rA25z/ZLH2m 69h58bNA7tCMWeWnZhD2hQ89JKzqLMywDobOx8jWu8jQ6X/2pgRHtXkyXyPb/gpKINDyd52D1u+ 1TIhbAkyQyGHL3xXud+oMwjh/vIDLt0vRkg2mUZEW0y3QRVGuX31kaaUvnPQzndC9K89M1tvsln xsM1PpTbX2G2OOfBKrsERbNhR/+njMyM2S2dkw8n54ms5chCqc3fOtIUOEn9fkEJpuayetoIeEj dM7 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-rdma@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?