From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-114.mta1.migadu.com [95.215.58.114]) (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 6081B3E3142 for ; Mon, 7 Sep 2026 02:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.114 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788749846; cv=none; b=Z90+iyWOLQa3fb2E7Gh3ssZ1wW3GvGrrplaHRchqfYw7gGGuabnS/FuOk4d2CsiI5Ia13tlLcRZiceymvC2ZZj82rJXyNKRqfvm98nwDtSA/cgu/CQrMb9ts+7WT9T7y/CTGhvfkmzt6qh+EMRmbkROnxjZ+FgzsS31T8bAcN1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788749846; 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=s8me3fXE7mjyoDHAhnld8dcxCx9Tuez6t9ZC6ApYp3e3SHn24g8Xn089JO6g+GMdFxdmweC2bTSm0+M+XvlMuA2o2XU2k37vfDor/vTB3hgHV1kXy9p1VxWogqOa66rtMZh3XnpPvf24BFazE060q5/kUh9pyyJ6THvFIbbvBp0= 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.114 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-kernel@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-kernel@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-kernel@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