Article View: linux.kernel.netdev
Article #9372Re: [PATCH net v5 4/4] selftests: net: add devmem RX and TX netdev unregister tests
From: netdev-bot+sashiko
Date: Sun, 01 Nov 2026 23:01
Date: Sun, 01 Nov 2026 23:01
68 lines
10639 bytes
10639 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The patch adds CONFIG_UDMABUF=y to
tools/testing/selftests/net/config, but the fragment does not pull inβ¦
--
selftests: net: add devmem RX and TX netdev unregister tests
This adds devmem_bind_rx_unregister_check and
devmem_bind_tx_unregister_check to nl_netdev.py. They check that removing a
netdevsim device while a netlink socket holds an RX or TX devmem binding
detaches the dma_buf right away. The commit also adds the dma-buf, udmabuf
and devmem options the tests need to the net selftest config fragment.
> diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
> index d4416f8bdcfd1..7a89e2618d4c4 100644
> --- a/tools/testing/selftests/net/config
> +++ b/tools/testing/selftests/net/config
[ ... ]
> @@ -133,6 +136,7 @@ CONFIG_TEST_BLACKHOLE_DEV=m
> CONFIG_TLS=m
> CONFIG_TRACEPOINTS=y
> CONFIG_TUN=y
> +CONFIG_UDMABUF=y
[Severity: Low]
Will CONFIG_UDMABUF=y actually get enabled from this fragment on a minimal
base config? UDMABUF in drivers/dma-buf/Kconfig has these dependencies:
config UDMABUF
bool "userspace dmabuf misc driver"
default n
depends on DMA_SHARED_BUFFER
depends on MEMFD_CREATE || COMPILE_TEST
depends on MMU
CONFIG_SYNC_FILE=y takes care of DMA_SHARED_BUFFER. MEMFD_CREATE has no
default, though, and can only be set directly under EXPERT. Normally it
is turned on because TMPFS or HUGETLBFS selects it, and this fragment
asks for neither.
If the base config has MEMFD_CREATE=n and COMPILE_TEST=n, Kconfig will
quietly drop UDMABUF. Both new tests would then skip in _create_udmabuf()
and never reach the unregister path:
if not os.path.exists("/dev/udmabuf"):
raise KsftSkipEx("/dev/udmabuf is not available")
tools/testing/selftests/bpf/config lists CONFIG_TMPFS=y next to
CONFIG_UDMABUF=y, and tools/testing/selftests/drivers/net/hw/config has
CONFIG_HUGETLBFS=y. Should CONFIG_TMPFS=y be added here as well?
> CONFIG_USER_NS=y
> CONFIG_VETH=y
> CONFIG_VLAN_8021Q=y
[ ... ]
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261030083539.777877-1-almasrymina%40google.com
Technical Details
Message-ID:
<179357408797.3131.706180156061595645@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354361-linux-kernel-netdev=dewy.ruReferences:
<20261030083539.777877-5-almasrymina@google.com>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-354361-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v5 4/4] selftests: net: add devmem RX and TX netdev unregister tests Date: Sun, 01 Nov 2026 23:01:27 +0000 Organization: Usenet Network Message-ID: <179357408797.3131.706180156061595645@kernel.org> References: <20261030083539.777877-5-almasrymina@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2791489"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:qlPC/dpBEhZ9DnwGNJhfvAGSkFA= sha256:7FBFfwFGsnBErDK5UyU4kpkvEVJa0h/QhK6qT6puCNA= sha1:6RYkRxXTwLWYuXPx7MKrJMlN5Y8= sha256:izeBwq5LOY5aA3LJUdnNNcB3YHWR5DUU+14fIEl69tM= 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 250831123A1; Mon, 2 Nov 2026 02:02:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Status: No, score=-2.3 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, 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, URIBL_BLOCKED=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 FduJmoFakr4j; Mon, 2 Nov 2026 02:02:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354361-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 9EB9A11239F; Mon, 2 Nov 2026 02:02:12 +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 299C12DB5E; Sun, 1 Nov 2026 23:01:33 +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=1793574091; b=wd4Cz7+GWsQDeFXK7iq3jB2ZQ8F51mC7g79yacjqOEzUg7uLDIa+qRJUowobP4kBmfDO tcC2oKo1YbuMrntA5bKUKwfjSHjVEC8NtEFboD9lCZQw0uGW8ULzbAQ6idcY+fiL+/0Gt G05tVWeAh9+spOqASPufxqiKOZEkM2gqdWXkIz2JcoCLrkHd6SVZlGsO9JWmuR3zu5hFk s6rNltalq2Uuuvy71ff0p5YipechroKT6vQnD6rZ+THlt0esRyRqwzlEjAo4mJrox3XiR qSuKw5Nzv8B8ZcG6n3/42Tm2237oznP66LCbzvvyVBHWJhjJyN9EdBGn2bNDY5N3tjw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793574091; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=0UiNF2mRSaBX03RL18h3QU/ZLYC6k7KWXPLfr5uKQu4=; b=h7oTyHgK2TifrYULkfSemxQ4kN/Jt6kevxJsBv4oBWrkjCcaeca/dZNDkFmfAgciKsu+ 0Rfn2Rd/v8AZBQBuqdqpJp0frwBqImrdvmksY6YfR+bIxtMna3UX0DVNSRZqE4XpQss3I 9TdrTCqsomgUHbyOmeLsSfvKPVtmlro3Qokg1EXh1V9nostUOt/BdCQev33XY+wGMiQsA Dje+t1LHbgBeeLGkJAezSh6DA0a84n/ipvf3U1XOVvSo0mEHJ+nTChypuUC+6cea70zf0 vp/Fv7oEtmEXMZBVVrj01G+pqWK5TQ3O9XgdNIK30T+y6s6mJyncMdAA8CaX6RhJ77g== 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=a0UZpGav; 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 D5BC560A2610; Sun, 1 Nov 2026 23:01:31 +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=a0UZpGav 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=1793574091; b=JfppM3/3xGiHil+j/79kcMCyXU4+5sviwnTwtZ21eV/m6ZY4qpzrtbtHJ7SLJU1qH8RI ihxWDdrOHUYQ8NoQ0Ho9LBRS44EwsTv2PAHqgqrphImSrJ59R3mY1KhNwVmT1b/AzRveN c6JT1CCE7+CGJxD1jHgd8qVSyAtGw3SpG5Corhyhn3Xg8mjWClgoaHswyBS+sxnVJBN6j vYmfra/E+QqFlJ+dHsVUDLqC7kmFsaSFY2W7D1cLhTnDoiKRXO4kEDuy5ueWwTNEyhj5V vz2w+TeZ/4ulUTAPdaxW+iRoKgqMj5KxK6qP8ilwQgyqX4RIen11xlEWOKbrrXiWd+A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793574091; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=0UiNF2mRSaBX03RL18h3QU/ZLYC6k7KWXPLfr5uKQu4=; b=JO/mx3ERjJQO/P1ojJwwdqu0YV7cfojCeMcZGub2xFBCGLWJf99mfZ3h7wuzU55j9Zdo xwtBqrn3x8yBI9Nyl6Ulpa2sWKwVGJfsMqDnEUzxlJa+fnFS6V5lVzFuHZM5IOY8YCB5c qS5S5qIQ99zzxQZbMjjvBzrq2h8jpXoz8YTx7tIK5p9fjoIGpq4IbPOtbkM6CggZx/WjB SK7YIyPBRT0TrdBtB0oplqs0uiWYsJcu17eN+0tyVrvTOiY2iVV0gdzHE3mcLMkrqr0ry RXc9sFHDbzwI+wxr3/THwdsGjPTR+ITbaE4FneFN86oa2xabPRw6AkAGrC1SenkQ6jg== 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=a0UZpGav; 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 AFB1D606A337; Sun, 1 Nov 2026 23:01:30 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 731061F000C1; Sun, 1 Nov 2026 23:01:28 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793574090; bh=0UiNF2mRSaBX03RL18h3QU/ZLYC6k7KWXPLfr5uKQu4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=a0UZpGavCMbxV+NQxzhWQsTFySbnG8gry1G//WQT0WydeYudWgbOp03/WnWxVVZRb OTZ5O/bObqbOQ2lnvDuqTrbMKrQDSG2mMu8Ic2RZ/QDEWKdcoh7H8BEDWINCPo2y6G 04XXsIRKc5Jce3MPgVCOE4WUHAqwtOA3i67XPp/9/b7vHBI9EssL6xraFBBBZqCIOt eRizDTPiCH4KElKTyaF9T+XBHHLk2SwwZm4NswkCF2Tzr3pAC/qmsV9DeqgkKYTxpK PXxGFAsocL6dnXmpZT1ajaFrBNQJ9Fc6BbV5uRRLZF33hUnZHalD2u4mOsNc/JtfyZ 3iZmqZmkwtRiw== X-Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, pabeni@redhat.com, sdf@fomichev.me, kaiyuanz@google.com, kuba@kernel.org, bobbyeshleman@meta.com, asml.silence@gmail.com, dw@davidwei.uk, ap420073@gmail.com, davem@davemloft.net, edumazet@kernel.org, horms@kernel.org, shuah@kernel.org, sumit.semwal@linaro.org, christian.koenig@amd.com, phasta@kernel.org, andrew+netdev@lunn.ch, sdf.kernel@gmail.com, hawk@kernel.org, ilias.apalodimas@linaro.org, daniel@iogearbox.net, razor@blackwall.org, tariqt@nvidia.com, kaifengw@google.com, dtatulea@nvidia.com X-In-Reply-To: <20261030083539.777877-5-almasrymina@google.com> X-sashiko-severity: Low 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