🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10073

Re: [PATCH net-next v3 3/4] selftests: drv-net: add a kperf runner

#10073
From: Björn Töpel
Date: Tue, 03 Nov 2026 05:03
18 lines
8326 bytes
Stanislav Fomichev <sdf.kernel@gmail.com> writes:

> Add a helper to manage kperf servers, run the client, and return the
> aggregate throughput of both ends. Use a random control port and a unique
> PID file per server, as the hosts may share /tmp, and report server cleanup
> failures. Stopping the servers waits for their sessions to exit, as they
> may still be releasing devmem and RX steering, which the next test needs. A
> server which can log does so to a file next to its PID file, and the end of
> both logs is printed when the client fails, as the client can only tell
> that a server went away.
>
> Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>

Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID: <871p924icm.fsf@all.your.base.are.belong.to.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355221-linux-kernel-netdev=dewy.ru
References: <20261102190827.989117-1-sdf@fomichev.me> <20261102190827.989117-4-sdf@fomichev.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355221-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 3/4] selftests: drv-net: add a kperf runner
Date: Tue, 03 Nov 2026 06:03:21 +0100
Organization: Usenet Network
Message-ID: <871p924icm.fsf@all.your.base.are.belong.to.us>
References: <20261102190827.989117-1-sdf@fomichev.me>
 <20261102190827.989117-4-sdf@fomichev.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3098801"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2DdGBZCRZQEKPBk6qs94g3u4Jz0= sha256:jhPAgXg6ySt0T2zCi7XPnobFEYcdQ/txZAKYOgX2brk=
	sha1:x/kFUXEXAZlolZRB6A/Ypzajkf4= sha256:51sq7Suj4EPleSI7DPgzdQDzMWDHl3tSE1OIBjYZwFo=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 8E98E11273E; Tue,  3 Nov 2026 08:03:41 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 4gw1gyA3-i9O;
	Tue,  3 Nov 2026 08:03:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355221-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 0F9A81126F3; Tue,  3 Nov 2026 08:03:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id CE4742AE24; Tue,  3 Nov 2026 05:03:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793682203;
	b=LNUiF+ItviOjYXko885eVMdb+n4Q9pOB34xzJ5qw4/qV8xiq6qxClSXIDuFFsHcECIqn
	 lGTjGkdE3kSo/XAcCD4Z7z7o805KE3lOujkEXzNYnaNU5r8S8NTTbPLhduJN/BQpg5C/n
	 PfjyNloZC7FKBwJVHrN5o1Cus19hz8WflhER754XUVqz/PXnsGLn1u4TsBqAzE1A3ZRDr
	 ul1OC8KMhjV/s+mjwKK8GNwPA3lGhv+Qa13wEA8CqpblTeaWN6r8KNS+crCTwUUfsgJeD
	 OAeuLadClfSFF5BA+cYCL9kexDyC4CgRjaPTwo2PJGB3lySjVvHtQNsYY/i7gudLNZA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793682203;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=Cmm9TjBM15fgNhkDtsmSTasJ4YzCWckmM89Ah4ebytw=;
	b=xPDAv52w0s17jiRIvybiYm4Y1EBaM7Ph3EVguqfLYIm0+UDRxthtm+mHC/6If64Dw4gA
	 5vzXY2zYpXaQXcl/+52D8nqvDiQ6vb7PyO/gPTMDMtln5qxtemJAyPrSb1hGhqITioUrS
	 zXJ0DSsGSOKbITvG5Zorar6kFRMx6p6tZEDWkM6t2Ujw84iFILnl1DSEQcGz/EHkWbB6B
	 4Bk1matsm7iN0HP7MtHm97ldzdjsGGviYu0YsyQ2JE6u6BaGKLHetxZvnfRatnILTaj2g
	 LB1+rjrwzQr8QERxn1xYmnOIBQDht2KCaOnqOnbL6TnT4e6EAaPellkZLY0/MHqIhVw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eko2jo8z;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8ECFA606A32E;
	Tue,  3 Nov 2026 05:03:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eko2jo8z
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793682202;
	b=EHB/dnagSAoti2u08QD6FKjl4qxSaHwSRmD0E+gDhtQOKDLV9b0ioHFyBbpkh40XEV2r
	 /KMWu3cPFcDnfPDMYrkZUbCNKrr1uHTwdK5L83Cel66meoqcmjPAsmOrUmGEn6VMaTmpS
	 PoGb2Dov+DmSsPNuyg30wpC8xSMhxas3+TRzHoZ36W/vLxH5nOVDH/XZb266ldb7WfoRq
	 YUST+/KEikhtX/Ngeg9UNvCgHvbClbCKDd0DMNwKBBHrI5vrT5leJQgcWtR5f/UqFs4/j
	 Ky3JsZ8HwcYcvVi/fkMWjTEPlOk3crIPg08vGkOv+vmE5tsTgQ/OI/n1Uo55vY8KXNg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793682202;
	h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References:
	 Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=Cmm9TjBM15fgNhkDtsmSTasJ4YzCWckmM89Ah4ebytw=;
	b=Lwh8ZG7DG2hWLGw6zEfMwihm600dThZDrKa9j+hfpwLiArjyZIVhBdI5eTcbBjLJWu+k
	 WD+lnKuB4uI+1S2WDKDYlBrSEXGdluCnIzffCUGEaCdC8eAA6zJmAhPD7WbtR80aci4t8
	 HhNjgO3mT+HH+tTzvFTB6GE15eV/WchVOB0rB53I571j2es2tq3xRcpJhNu4mm7b1bjT5
	 4MPZYld5RfpZV/Ne4bv9ylkzEoGjJsDtoWM0mtbaLY2fGemIiwK9IZ8O5j2B3Y0E0KVqE
	 utUnpcsDVLI3d8ajIWDKSz16k0PtoHRCsGoib/xY6NRj4LZW6I1o6+Uwdhba703jOig==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eko2jo8z;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7261B606A324
	for <netdev@vger.kernel.org>; Tue,  3 Nov 2026 05:03:22 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E67BA1F000C1;
	Tue,  3 Nov 2026 05:03:21 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793682202;
	bh=Cmm9TjBM15fgNhkDtsmSTasJ4YzCWckmM89Ah4ebytw=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=eko2jo8zYVhQ5UuDBBtfdtlNYK+Wnp2cv2IIadNkk5nQ5ty75ATlpKCx7u6TzZFCG
	 eU2zTqE7hImwwaONSzL5Ed41xRKmLKZrM8U6Xus3gMVUwV6dLJ+FNZD7C04Kmr3fhO
	 GgsYWq3TGdBN2beBDJR0I7gNn9910ND0ZOgEHgmvaiFTESDoCMXqdqx4WYcb0uPHrv
	 CIVKVPULHIc6oZJ6m9CNcmoST1fXPj+lSe+No+a6nG33N7yu2ZyPhWzWDVcvB24SQJ
	 puQ+wdXNDk0Ar4B9Moc7FlXQSKcbxryYqcRR0WC9Q/f4z5jKcyXKcEDBq4EeLObIHX
	 yg/VDn/VjhPfg==
X-Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
 pabeni@redhat.com
X-In-Reply-To: <20261102190827.989117-4-sdf@fomichev.me>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list