🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15919

Re: [PATCH net-next v4 5/5] selftests: drv-net: devmem: TX from a hugepage-backed dmabuf

#15919
From: Breno Leitao
Date: Fri, 13 Nov 2026 12:21
13 lines
9372 bytes
On Wed, Nov 11, 2026 at 02:47:40PM -0800, Stanislav Fomichev wrote:
> TX net_iovs are now sized from the dmabuf layout, but the TX tests
> use a regular memfd, which usually keeps them small. Add -H to ncdevmem
> to back the udmabuf with 2MB hugepages and a TX test which sends a 3MB
> buffer from it, so that frags end at and continue past the 2MB net_iov
> boundary. The payload has a 7 byte period to catch offset errors.
> 
> Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
> Reviewed-by: Mina Almasry <almasrymina@google.com>
> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>

Reviewed-by: Breno Leitao <leitao@debian.org>
Technical Details
Message-ID: <avcAw_0ElvSFuRqp@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362625-linux-kernel-netdev=dewy.ru
References: <20261111224740.2744522-1-sdf@fomichev.me> <20261111224740.2744522-6-sdf@fomichev.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362625-linux-kernel-netdev=dewy.ru
From: leitao@debian.org (Breno Leitao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 5/5] selftests: drv-net: devmem: TX from a
 hugepage-backed dmabuf
Date: Fri, 13 Nov 2026 04:21:33 -0800
Organization: Usenet Network
Message-ID: <avcAw_0ElvSFuRqp@gmail.com>
References: <20261111224740.2744522-1-sdf@fomichev.me>
 <20261111224740.2744522-6-sdf@fomichev.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1418306"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:lVhR2B+AOpKMw5JWiT1jeplOcA8= sha256:yYG9hbR78BS/iWEwh6NF3pi8qsHz7EpD1vJLvTIjels=
	sha1:NOJL+T+Dm7ThaloS6/Zi5mIH+aY= sha256:AVPqhAktuPClrVLMriAaadRRI/Hm82fmbBrAVNfuOeM=
Content-Disposition: inline
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 6FC81114623; Fri, 13 Nov 2026 22:27:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.052
X-Spam-Status: No, score=-3.052 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,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=debian.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 ImLk1558vk51;
	Fri, 13 Nov 2026 22:27:44 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362625-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2F8CD114616; Fri, 13 Nov 2026 22:27:36 +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 31BA1290788; Fri, 13 Nov 2026 12:22:59 +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=1794572508;
	b=Hnip+o9d9nBDizdr26Cfnv895gT1kzujRdPhXKkptfuMnbs9j99TZZ+u+VktHSS+Opq7
	 RphESFkdhB08ABgw3yiwFwtxuehBghSm1x0r7J7zlwLTgBq6inP0LUbYG2JzkFxOsQmpm
	 qlq1tPP6fszydIDIJKwdPfBrZRTcGNA/FeTc/qphmgesZUjUs3BoTFRnw16UjuPtTSrH0
	 6ACxVb1aD6l0xUQTM005xvYUZVjshpORAJbbWB0TI4eSeIesoQ+NTu4TXFYp9H21nVo1d
	 svVujXVB9C8X1X2LDUQZEQg6SZiCHpvwqKTWjDxK80nvdSdHVDh3QFr7lS21K9ChflA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794572508;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:
	 X-Debian-User;
	bh=sIrF5qN/w2GsqpKDUFenvPv4QmhVj8/qRHXjXTYxo2Y=;
	b=LG6+Vad+8Y4E5XZvBejWKxaPRTFeNdqrp9icTnEeLeWby70WyGP7Bul2KJhgPmplIKyL
	 RjJZrZ50XlVAP/q97g090cQhVCE+0nuSxmqPQvkl1pKrUhF/FIKzUnDlPLAtvBIdXkAtQ
	 /OYqhz//SG3JJJuuU+XqdXIPyo5nwIv1i+sTIm8zWrqa0QFkRa2y5N02gbtIBnns5ogY+
	 cDaPw8oWCfGNMnKmZbZ0g7mSTz/44XmPOVXtN7AwLqDVkMPHLVbR9Clv43Ta9bL93Tsvt
	 RL/ZEtLg+DdiKcG5JaR7kI9byG7tvfGeBh/frcqGOuKrp9emUY2owjd+ZFbkwhh57yg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=gmnMKrmE;
	dmarc=pass header.from=debian.org;
	spf=pass smtp.mailfrom=debian.org;
	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 6860B60A3824;
	Fri, 13 Nov 2026 12:21:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=gmnMKrmE
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794572502;
	b=3mKLeqU+rbUn2Hgs5/nddlyO7MpYKGj0PSmPiCBLX8f8e3wF5R0jI6wjy31DKBcUhv/l
	 NycF8uztCm5oYQA/ka7S48DZU0TE3S9TYhTTP5ePQja4idPH1qz4UykUlpc5ISTbTDwbQ
	 YnSgXRUcE0nhprcdPlebxm63W1lG4sLtPl3mBSmgzLMAbhYw6Tda1bzaS7GZznpu6WpVe
	 iTzf65k9yCvMRAbQU9qvuh2k09GdgikORgbdH9rp793/5KSrDvkv55DZW4LMysBiY3wQU
	 gpVEJm4FSQk1UTTMASQtPgcH5uUreARW73p338kedFdahemzBr0SzyywfHHwQ6criIg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794572502;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Debian-User;
	bh=sIrF5qN/w2GsqpKDUFenvPv4QmhVj8/qRHXjXTYxo2Y=;
	b=yB146k3WW1LzGP9HyC41/+uulosNEutbApLTtF7nN6+iC1a6DM2KD+iDbMsctTRXYhcW
	 a5xUDr7Gkw3ddPHsTc3pKPGEU46U1lfUUH5iubWPjda2F6eWW44PjxAGb3G3Qly8t248V
	 8nF5zI1o5WeNJLCgw49Kmx4BiCdd5+8WZCdlEq65ojZgaNmf1bwsAgm+997cN+rv22wZJ
	 7tFXtSH6pWWC4eD2YoGqRcWuEwrE8Qc8aodmU8oxZa6YBmwlfPfVNQWc4lgLhrf3ZKtqv
	 sYS2/wbbtFt8LfL/34B+YwOji7QgG4Ot6hV/POLTWsiI4qvXeah02wqEDdQSZTvLldA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=debian.org;
	spf=pass smtp.mailfrom=debian.org;
	dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=gmnMKrmE;
	arc=none smtp.remote-ip=82.195.75.108
X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F475606A8A3;
	Fri, 13 Nov 2026 12:21:42 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3F475606A8A3
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:Reply-To:
	Content-Transfer-Encoding:Content-ID:Content-Description;
	bh=sIrF5qN/w2GsqpKDUFenvPv4QmhVj8/qRHXjXTYxo2Y=; b=gmnMKrmE6E+vUJmcq5WF83hoIT
	u6kr4TN9jUr/fVVpkG3Vvhwg+BG1cOPlvrZ3iFrI6qTPlyPoziQ7lOiwuEI7xr4gwHbtKpeegFEUO
	v1tn+qv1ffh+lDIgRwqA74cmWcYWzZOYcTV+38W02VZa8dBb4ikYkp40pKZQv6+4Ua2Nm91LXWQ6j
	+Zl6lBpqjBcdnXg0yIgalAzfGFaBkflwLlffGBrSOhLADxhvcGPlVawCXQAwCpQFDMTUYmlv0SmOY
	woqOb6Sx7HSaFu/7PN+Dgt25zdFz0/NHgVtig1oDbNMbNelgRfV79/8/KhoWAJ4pnLkVbgfhRyBDL
	Q6zSDyYA==;
X-Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <leitao@debian.org>)
	id 1xRqHj-00EkKb-0m;
	Fri, 13 Nov 2026 12:21:39 +0000
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, 
	kuba@kernel.org, pabeni@redhat.com, michael.chan@broadcom.com, 
	pavan.chebbi@broadcom.com, andrew+netdev@lunn.ch, edumazet@kernel.org, horms@kernel.org, 
	shuah@kernel.org, almasrymina@google.com, sdf@fomichev.me, dtatulea@nvidia.com, 
	asml.silence@gmail.com, bobbyeshleman@meta.com, daniel@iogearbox.net, 
	razor@blackwall.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
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
X-In-Reply-To: <20261111224740.2744522-6-sdf@fomichev.me>
X-Debian-User: leitao