From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-113.mta1.migadu.com [95.215.58.113]) (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 6346A3E5ED7 for ; Mon, 7 Sep 2026 02:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788749847; cv=none; b=UepEt+otcZpFw1nPYtfkwvVRkWQpb/Khnk8IC5Agz89OqNyp6SP2qLKIPkMpSsi9zEn/3yAkHLhWx0i6Zbp6JF6LXwuhy1Gh4tJCu76vew+bkMKGOhVpjsaQffaWBEXWVtuadGLnqIGkwQT/IZ2rTSi3q1u/SEZCzU8qlDkGlxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788749847; c=relaxed/simple; bh=EVCd9zteXERBAt/SX5CILS8alhx+syDJQf+XFvUpFOA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JstaOg4bBW/fyVWaCxMMtWd6NsqI4DCEEeA7JFpO651DKc+IGRNgpofuuCktgp/ABIDcFo4RmA4T7sipnzYILcz/31+fjzCVLB3LwSgraRwH+BkfoebCUfyDDNPIrLVBhyemLMa7lJVRk5QWsiOKFyyGMie0RwK8X9RzZeWq+tc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=wo21kBzN; arc=none smtp.client-ip=95.215.58.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wo21kBzN" X-Envelope-To: linux-kselftest@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=EVCd9zteXERBAt/SX5CILS8alhx+syDJQf+XFvUpFOA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1788749843; v=1; x=1789354643; b=wo21kBzNVlNqphSTKkGmCioMtaDI4E7R/TaFkRmoy59/k1e57XzaYbaxjDJmqAbfTB2KrKC4 hXQHjISa9id0MUCpDogMvLuXKNOZbYjfsmv1SD2gBNR5FIAmZ0fh8Yh8mT8wKvdKAT2y0kgU8Y7 caJE6zjsgAYnfOHDcz+0tjU0= X-Envelope-To: linux-kselftest@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id c880a3f75462cd55; Mon, 07 Sep 2026 02:57:23 +0000 X-Mizu-Trace-ID: c880a3f75462cd55 X-Migadu-Flow: FLOW_OUT Message-ID: <370cfedb-c434-40b7-8abe-9f68aca236ab@linux.dev> Date: Mon, 7 Sep 2026 10:57:11 +0800 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] selftests: net: Add TCP payload verification to udpgso_bench_rx To: shuo huang , netdev@vger.kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org References: <20260906145643.219609-1-f64116045@gs.ncku.edu.tw> From: Jiayuan Chen In-Reply-To: <20260906145643.219609-1-f64116045@gs.ncku.edu.tw> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/6/26 10:56 PM, shuo huang wrote: > udpgso_bench_rx supports UDP payload verification but rejects the > combination of TCP and verification mode. Its TCP receive path discards > the payload, so it cannot check the data generated by udpgso_bench_tx. > > Read the TCP payload into a buffer when verification is requested > and check it against the transmitter's repeating alphabetic > pattern. Preserve the verification position across recv() calls > because TCP does not preserve send boundaries. Restart the pattern > at the payload length supplied with -l, matching the transmitter's > pattern restart on each message. > > Require a nonzero -l value for TCP verification and retain the existing > discard path when verification is disabled. > > Signed-off-by: shuo huang Reviewed-by: Jiayuan Chen