From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 04AB6471415 for ; Tue, 4 Aug 2026 18:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785866762; cv=none; b=HEHrczE72t/wB4JqLryws2zex5JkLHoRg4tU+gX9ny35rV8Zkakl/40Hw+L1CgowyCvmHU8W4mq0ckCBDe2oKIUPHjS/KQ0roY8OQ8wxPqodlFImrJygI7V3JRW52jMc00aovtF/yKfP7Or1RgXL+wap4KlxeZyttSDxc1SE8Zo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785866762; c=relaxed/simple; bh=mukZbijvR09Qyb8O6a5zSs66Nc1Ea8eJ76KYS4fy0x0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Y8HDwk1BIEed3MX2FrJVtXlbfZiPnsOBdtvOy0vTjy/Ko+CX9FmKp2cKQZUh84DgNSsxGSJh5uWEPql4QuqI1FY8NvuOnuCOsW3WkhQ4V+/JoRKoTSZyof7PRFaP/czuCxmeaNqeBGoRXx9UDj3VcXKDJMc09OxNNyvjN9qpbCg= 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=T/XJod1g; arc=none smtp.client-ip=209.85.222.173 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="T/XJod1g" Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-934974844ffso12247785a.0 for ; Tue, 04 Aug 2026 11:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785866760; x=1786471560; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PvFOPFIKv7IZLYV82VSUnHCVCbk2jO9N6jmpfHOfts8=; b=T/XJod1gvh20p2DW/AdAWJ74EQT6tre1gp5whPlqrYD3PiIEjglyZGXneLDTjxaYuh kfyggTEifzO1Epx13eyNGjHVTWHDsKXWH7X9Y+bE4JG1zVMdZF8EVdvRuvTtLKvJr/lH vHnivznxdcM2TXrBNQelgkRj6iZv+L/BfB7E+UKM+PUMTCoD/TufPWpJcgiqmfMKmx1G 8e0ifEX+lXUADOzM/zVGLipW0fDsyVn6tBoIW6LSJ/DOtun8ixat62anId6TbOJgiOcb Wjbp+/SJtDyBdSa6rc2sdF6mJczvVYUkvL7CDlABZczuhp2VQ/yI1YNlDT/+i6Y1gt72 EUUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785866760; x=1786471560; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PvFOPFIKv7IZLYV82VSUnHCVCbk2jO9N6jmpfHOfts8=; b=SeWFvdl8sAcqt+HQSmZhIlxtbsg6X7m7oH4gPTzkk4bpbjzwrETXIpwS214eU/ophX jJ2RxMFIUhPtxsUylCHMLy25XB+VRZ+foJyEeEltNj0Eanvr69iK5vtFVA3RK7aAwXUy QEHWrCZx8p7puMV7GU3AvPwdM8/ZCB4xHiGtTMdH6lqQ0G9ngXvTivjATHJzMlBC5kPR +2IwvyUaou3mnm09rDRrZyIDklZ38itbujjk1l92bSwXqm1iDxNDghKsszrGYxwzaWGq kXTK5Dha8RuokN5BVqlrcLxoTwXG1W09enEa8WKmv6SdnD8uoMVHYRzvrdKAea+BaosV 9MpQ== X-Forwarded-Encrypted: i=1; AHgh+RqFIZyJQBgrfcRmNZQoPYtEHiDvKkJNXHVKwKuMfMbvkN5L9SYG3MIAlk1jzTf5L+/wpttBs7EOC9t47Aw=@vger.kernel.org X-Gm-Message-State: AOJu0YxzwGM63lLgpQ8aHc2Oi7Trgno0fZBYujXYLdxi3k8p89f/GHcN x3eUCspbf3P0xp/2FgL+vz1aydInOZPWlF61cdAy55Z87gsYlNopG4r6 X-Gm-Gg: AR+sD12GKbB3saLg7y87OZmXbmFqvUUJgCIkHFFuYsGmuJhJ19r4pFeaZ4OAuFqhCNM as9puSNP7+Sy8VNOubNo+LSVrIrJ0q/xHGqb8wX66jZqI9AXNZGUM3RStotGyM5fCySA0gM/mQy 6FsMDGjt3Tx6/sU+osrh6d/CmqplgWk4Z2Hzhr6e+O/0sL4JbuAMGUW73sot41ldzavMjtrqzuG z1O62ekwS9T9MD7VOh5GsJMhflO3HVmoM8VVtGB5JlKseKqS2jq7PQDgVGbhR4x1QYgikjtONAo H+Hq+fwib0l+Iq3x1rlr19LlVOthZEtKHA+Bzwd6V79pclL9cuVAUGiR65+ZWSeLzO8jpY6qyvv jL5up++fMf4yYA/ktg0g5kK7V0+5fMaVxU5EWs/t147Lb+kbkoReRkeEEfJ/wrwMKBZi5uekaKC tCaW7CNHCjkvd9Qw4QMaWj/Xy1pnGWCQt8FKm0WQp6TgYkL8YAA31w6+B8zxEIUjXRXFxXhBn+0 H1YJCb6auACmhDRwBavYcbxdXAuJzcS1CWe3T4G80E= X-Received: by 2002:a05:620a:40c2:b0:934:aa05:f549 with SMTP id af79cd13be357-936491d3c8fmr16849585a.25.1785866759759; Tue, 04 Aug 2026 11:05:59 -0700 (PDT) Received: from ?IPV6:2600:4040:9399:4000:e553:72e5:7d37:c7ef? ([2600:4040:9399:4000:e553:72e5:7d37:c7ef]) by smtp.gmail.com with ESMTPSA id af79cd13be357-93641592964sm148846885a.0.2026.08.04.11.05.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Aug 2026 11:05:59 -0700 (PDT) Message-ID: <9460e089-ed71-4f3c-986c-5d29b87b3500@gmail.com> Date: Tue, 4 Aug 2026 14:05:58 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next V2 13/13] selftests: drv-net: psp: Add a test for PSP with HW-GRO To: Tariq Toukan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni , Sabrina Dubroca Cc: Aleksandr Loktionov , Alexei Lazar , Boris Pismenny , Carolina Jubran , Chris Mi , Cosmin Ratiu , Doruk Tan Ozturk , Dragos Tatulea , Gal Pressman , Jacob Keller , Jianbo Liu , Kees Cook , Lama Kayal , Leon Romanovsky , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rdma@vger.kernel.org, Mark Bloch , Patrisious Haddad , Raed Salem , Rahul Rameshbabu , Saeed Mahameed , Shuah Khan , Shuah Khan , Simon Horman , Stanislav Fomichev , Stanislav Fomichev References: <20260804083535.2946459-1-tariqt@nvidia.com> <20260804083535.2946459-14-tariqt@nvidia.com> Content-Language: en-US From: Daniel Zahka In-Reply-To: <20260804083535.2946459-14-tariqt@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/4/26 4:35 AM, Tariq Toukan wrote: > From: Cosmin Ratiu > > Add a test case which attempts to send several 64K chunks over PSP, > which is more than MTU, and thus trigger GSO on the TX side and HW GRO > on the RX side. Verify HW GRO counters increase. > > This required the addition of a new command in the psp responder, so it > sends the data in order to get it reassembled on the local (DUT) side. > > Signed-off-by: Cosmin Ratiu > Reviewed-by: Dragos Tatulea > Signed-off-by: Tariq Toukan > --- > tools/testing/selftests/drivers/net/psp.py | 131 ++++++++++++++++-- > .../selftests/drivers/net/psp_responder.c | 49 +++++++ > 2 files changed, 171 insertions(+), 9 deletions(-) > > diff --git a/tools/testing/selftests/drivers/net/psp.py b/tools/testing/selftests/drivers/net/psp.py > index 315648a770d0..9b899723a635 100755 > --- a/tools/testing/selftests/drivers/net/psp.py > +++ b/tools/testing/selftests/drivers/net/psp.py > @@ -16,11 +16,12 @@ from lib.py import ksft_run, ksft_exit, ksft_pr > from lib.py import ksft_true, ksft_eq, ksft_ne, ksft_gt, ksft_raises > from lib.py import ksft_not_none > from lib.py import ksft_variants, KsftNamedVariant > -from lib.py import KsftSkipEx, KsftFailEx > +from lib.py import KsftSkipEx, KsftFailEx, KsftXfailEx > from lib.py import NetDrvEpEnv, NetDrvContEnv > -from lib.py import Netlink, NlError, PSPFamily, RtnlFamily > +from lib.py import Netlink, NlError, NetdevFamily, PSPFamily, RtnlFamily > from lib.py import NetNSEnter > from lib.py import bkg, rand_port, wait_port_listen > +from lib.py import bkg, ethtool, rand_port, wait_port_listen, CmdExitFailure nit: agent has pointed out that this new line is reimporting bkg, rand_port, and wait_port_listen from the line above it.