🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18423

Re: [PATCH net v5 2/2] selftests/net/openvswitch: check that a failed set keeps the features

#18423
From: Matthieu Baerts
Date: Wed, 18 Nov 2026 09:45
65 lines
14553 bytes
Hi Minxi,

Thank you for the new version.

On 18/11/2026 07:54, Minxi Hou wrote:
> Add a set-dp command to ovs-dpctl for the kernel's datapath SET command,
> and two tests that use it.
> 
> The first test clears the features of a fresh datapath, sets the dispatch
> bit with a valid pid list, and clears them again. It then sends a set that
> would set that bit with an empty per-cpu-pids. The request has to fail
> with EINVAL, and the datapath has to keep reporting the features it had,
> which a kernel that records them before the change reads as 0x8 instead of
> 0x0. A second request sends OVS_DP_CMD_NEW for that name from an outdated
> client, which makes the kernel drop the features, and a further set has
> to work.
> 
> The second test covers the recirc bit. It sets that bit on a fresh datapath
> and sends a set that would set the dispatch bit with an empty per-cpu-pids.
> The rejected request has to leave the recirc bit in place. A kernel that
> records the features first reads 0x8 there instead of 0x4. A datapath
> holds that bit only when the tc skb extension is compiled in, so the test
> prints the reason and skips when the kernel answers EOPNOTSUPP, and any
> other failure of that request fails the test. CONFIG_NET_TC_SKB_EXT
> depends on CONFIG_NET_CLS_ACT and both sit under CONFIG_NET_SCHED, so the
> selftest config fragment selects all three.
> 
> The reference count itself is not visible from user space, so the steps
> that use an outdated client only show that those paths run and that a
> datapath keeps working across them.
> 
> set-dp sends the features it is given. When --features is left out it
> sends the features the datapath reports, and it refuses to send the
> request when the datapath reports none. A pid list that is not a list of
> numbers is reported as such, and empty entries are dropped.
> 
> A failing run deletes debug.log, and ovs_sbx sends a command's stdout into
> that same file, so the tests report a failure reason on stderr. stderr
> still reaches the test runner from inside ovs_sbx, and unlike a duplicated
> stdout it is not a second handle on the runner's pipe. The daemons the
> suite starts outlive the script, and one that inherits such a handle keeps
> the pipe open after the script exits, which leaves the run hanging until
> the harness times out.
> 
> Every step that can fail says why it did. A datapath that cannot be read
> is reported as that rather than as a feature mismatch: ovs-dpctl prints a
> missing datapath and exits 0, and it leaves the features line out when the
> kernel does not report them, so the check reads both cases from the output.
> 
> Reported-by: Matthieu Baerts <matttbe@kernel.org>

No need to send a new version for that, but next time, I think it would
be better to include an individual changelog per patch in the notes
(under '---'). There, you can mention that the v5 addresses the error
visible on the CI that I reported, instead of adding my Reported-by tag
here: I didn't report the whole issue that makes you write the patch.

(I didn't review the patch, but I can see you did some modifications)
 https://netdev-ctrl.bots.linux.dev/ansiview.html?f=/logs/build/1214612/diff/b4-diff.ansi

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.
Technical Details
Message-ID: <119b21d2-31de-4416-aeed-d1f04ffcfd82@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366007-linux-kernel-netdev=dewy.ru
References: <20261118065435.2367014-1-houminxi@gmail.com> <20261118065435.2367014-3-houminxi@gmail.com>

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-366007-linux-kernel-netdev=dewy.ru
From: matttbe@kernel.org (Matthieu Baerts)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 2/2] selftests/net/openvswitch: check that a failed
 set keeps the features
Date: Wed, 18 Nov 2026 10:45:32 +0100
Organization: Usenet Network
Message-ID: <119b21d2-31de-4416-aeed-d1f04ffcfd82@kernel.org>
References: <20261118065435.2367014-1-houminxi@gmail.com>
 <20261118065435.2367014-3-houminxi@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2559067"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:77pNYaGoeq9Dloha+fRsDyzbFQ4= sha256:AXE8XS/pGaOjm66oSAICb5QuJCRVPmxHKfvk6vm7oic=
	sha1:EjfdpGzS5AO2FPol8HYpbB5bK3o= sha256:TyTkDZGbb+7or5TGT++RmOSwrlJ192b0xQS4tTxK0b8=
Content-Language: fr
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 938BB115233; Wed, 18 Nov 2026 12:46:01 +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 CZ2wjN-nxrMg;
	Wed, 18 Nov 2026 12:45:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366007-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 78258115204; Wed, 18 Nov 2026 12:45:48 +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 6900335B21; Wed, 18 Nov 2026 09:45:45 +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=1794995145;
	b=K1W9sPK55UtBKfTdciTYlMUA7UtNsC0y53hDwoHqppLVPB3h1rWvL5+X9JhX8Yy5P6YA
	 XqlL6H66Lx93U4oYHP/DtnZJYiEfSwXDN9txOaCpko9msdaUpPe4T4BsUEawzjsww7/EX
	 iOH9yeY7qJ5280/EvM3/jawTP9dKSreE4gkr7ZIE9RB28ld6o55jRL8VxR3JtW2XWrD9r
	 q/Gi/YkSpb4BRCa+rQR0qlioaXIaNXMfqcMPwoGgLfOgkWd9daBYjDS3mDxjnn5ogaMdF
	 7wSyR40RpdMx+RDcLsuvrsViNDP8llKcow9pb5xvh8AN8/0rQ0wc5RTPyvnY8B/VRkw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794995145;
	h=X-Original-To:Received:Received:DKIM-Signature:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:Content-Language:To:Cc:References:From:Autocrypt:Organization:
	 In-Reply-To:Content-Type:Content-Transfer-Encoding;
	bh=SbmhG6G9qez50HTqQGGBfci3phOw/cU5LI2SYmmFKKg=;
	b=Pfkbjh56VdRVrZ2sdOfWDoxP0QfwhmwBQHKY343wRCoAb+HXwoyaMQAL9NGUYT/FvT8e
	 RbvCLWGAwaFvgvX//qtzBvdelSkyCSmmIgw6NVWJA3L1FyQXnes5tpWsMZpSVtjU74d47
	 KiNrvlwX/QaUMtPC3vuJvunjBuQQ+fZ3r1yUmqaC3mogNaQDuaPq3oS7zJv/lNzxvnTMG
	 tO2v1q0+ek/Nm1sSlDZKX8hE9Bo4EQJKvVkiDnwMBjhvrDp4yy9+KPJd8B3Q8wu+e5hDt
	 +o+39IKX6jFyCE+eHzmY1SYVX0kWMMcm2woPPaWcIEQ2SLd8lqk6TiWJdyc3/HXZBGw==
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=owgIeihV;
	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 3C1CE606A333;
	Wed, 18 Nov 2026 09:45:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=owgIeihV
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=1794995139;
	b=YnpoQwEPCszRFS+Dwg4NgZRuc3RMxUONocBYbjHsxuS99eyxnvygWIFcM/VdHLpeT5n7
	 2iRcyJsDQDX6H58F76o7IkE69C0k+P83GkKZX/v7XCdxTshnbGvSZKxFsuhTpq82Gomhe
	 Smg9Djk2ub1HftGE0VKJz/f8UUi6ALu5l5gu70Cq1+Qm3bhuEoiq7LVdN9VsIDYCG6AgP
	 PEq/wTUdsFkL+hMZqdS0wShUIbkd/iZfKaGpR+GJStEo/nFITM8wkmseihaPJJtekDQWI
	 1MNXEzpXifPkd4N4Qnb8WLEc9TW32QqklnhHy3Oq/at7fToBUs0t/j0PG/Vu9G+jbCw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794995139;
	h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:Content-Language:To:Cc:References:From:Autocrypt:Organization:
	 In-Reply-To:Content-Type:Content-Transfer-Encoding;
	bh=SbmhG6G9qez50HTqQGGBfci3phOw/cU5LI2SYmmFKKg=;
	b=1TUbfR0ySX6h2PLLsp8ZSojahrfO+z6eAxZAAq523gypxxXpea7hvBLjfcnChbENz+fs
	 ARZ9ba5vf8ZGygeXJ2LslwXbMvDakngdV3cJg0TxvmF6rPS18ag3mcyCi99uMEcg+K5r4
	 FHkwVocH3ZXcJBhTjehzpWUqo0BOpAUs6CwTZ54Ojb0yEp+k0xbzyf7QfW/budpHUpNAQ
	 28dtqOhKE0Y4LAKDMhWAet0zI0aeEddzR3QiIXvSvCLmUrQTHY2tjzfO4vk9rBPqG2H3z
	 0AA3+i2p6/1s44LPF4qcGtPhQWCjF1U9QSUQ4roeeY5VCwqHIBdttOJZEqrPgQfKCgA==
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=owgIeihV;
	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 568DE606A32A;
	Wed, 18 Nov 2026 09:45:38 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5276D1F000C8;
	Wed, 18 Nov 2026 09:45:36 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794995138;
	bh=SbmhG6G9qez50HTqQGGBfci3phOw/cU5LI2SYmmFKKg=;
	h=Date:Subject:To:Cc:References:From:In-Reply-To;
	b=owgIeihVihI+3CRb0lPoo2dqm8FMlfJm9nNM0JT1TchugvidsgbGgB9D8at6pF3mN
	 J3yVPZ9lYVKSrk/DkRNWqXgFQzVUUpVIoGfgwK70CVWQKY7gSmuphpHsuNEOChwvpX
	 1kdNTV8MuNMi7ah8wXuP7fFBfhXEDoLGoMdcD1eQjBU51lirCtfzCJyhe9/O2uxgOn
	 4TafjK37/JQFpv5AZBPpzwDd82Sk284BZ/6LPR5ZDgRR3AI+4u63rpgMMALazc/FEK
	 aFsq7CKbuUmdW4VEkuXyrm3MjyBYEr5mc7RNSdOX2pnx9qPn2V8zVQV6+FZqYOa2bB
	 cOrPzZZX2dX6Q==
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-User-Agent: Mozilla Thunderbird Beta
X-Cc: netdev@vger.kernel.org, Aaron Conole <aconole@redhat.com>,
 Eelco Chaudron <echaudro@redhat.com>, Ilya Maximets <i.maximets@ovn.org>,
 "David S . Miller" <davem@davemloft.net>, Eric Dumazet
 <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
 Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
 Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org,
 stable@vger.kernel.org
X-Autocrypt: addr=matttbe@kernel.org; keydata=
 xsFNBFXj+ekBEADxVr99p2guPcqHFeI/JcFxls6KibzyZD5TQTyfuYlzEp7C7A9swoK5iCvf
 YBNdx5Xl74NLSgx6y/1NiMQGuKeu+2BmtnkiGxBNanfXcnl4L4Lzz+iXBvvbtCbynnnqDDqU
 c7SPFMpMesgpcu1xFt0F6bcxE+0ojRtSCZ5HDElKlHJNYtD1uwY4UYVGWUGCF/+cY1YLmtfb
 WdNb/SFo+Mp0HItfBC12qtDIXYvbfNUGVnA5jXeWMEyYhSNktLnpDL2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