Article View: linux.kernel.netdev
Article #11462Re: [PATCH net] selftests: bonding: feed link monitor to deflake prio_test
From: Hangbin Liu
Date: Thu, 05 Nov 2026 02:19
Date: Thu, 05 Nov 2026 02:19
61 lines
10787 bytes
10787 bytes
Hi Bjoern,
On Wed, Nov 04, 2026 at 02:20:18PM +0000, Bjoern Doebel wrote:
> With the bond idle between test steps, the arp/ns link monitor can
> declare a healthy slave down (~300ms without RX/TX). If this hits a
> failover step, the bond picks a different active slave than expected,
> and primary_reselect=failure/better never reverts it:
>
> TEST: prio (active-backup ns_ip6_target primary_reselect 2) [FAIL]
> Current active slave is eth0 but not eth2
Thanks for the fix. I also saw this issue but haven't checked it yet.
>
> Reproducible when running tests under load (2-4 / 100 runs).
>
> Fix by pinging a non-existent neighbor for the duration of the test to
> keep traffic coming. 100 runs under the same load with the patch
> applied: 0 failures.
>
> Fixes: 42a8d4aaea84 ("selftests: bonding: add bonding prio option test")
> Signed-off-by: Bjoern Doebel <doebel@amazon.de>
> ---
> .../selftests/drivers/net/bonding/bond_options.sh | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/tools/testing/selftests/drivers/net/bonding/bond_options.sh b/tools/testing/selftests/drivers/net/bonding/bond_options.sh
> index 187b478d0ddf2..f599a2a8ef156 100755
> --- a/tools/testing/selftests/drivers/net/bonding/bond_options.sh
> +++ b/tools/testing/selftests/drivers/net/bonding/bond_options.sh
> @@ -74,6 +74,16 @@ prio_test()
>
> # create bond
> bond_reset "${param}"
> +
> + # Keep the arp/ns link monitor fed for the duration of the test:
> + # ping a non-existent neighbor, which generates steady broadcast
> + # ARP requests sourced from the bond's own address. These egress on
> + # the active slave and are flooded onto the backup slaves' links,
> + # where they validate as RX activity. Without traffic, idle slaves
> + # are declared down by the monitor between test steps and the
> + # failover checks below race with the monitor.
> + ip netns exec ${s_ns} ping -i 0.1 -W 1 192.0.2.99 &> /dev/null &
> + local ping_pid=$!
> # set active_slave to primary eth1 specifically
> ip -n ${s_ns} link set bond0 type bond active_slave eth1
>
> @@ -157,6 +167,9 @@ prio_test()
> check_active_slave "eth0"
> bond_check_connection "change slave prio"
> fi
> +
> + kill $ping_pid 2>/dev/null
> + wait $ping_pid 2>/dev/null
If the kill fails for some reason, will we wait here forever and hang the
entire test?
Thanks
Hangbin
Technical Details
Message-ID:
<auvnnIXQV2zufxtF@fedora>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357035-linux-kernel-netdev=dewy.ruReferences:
<20261104142018.552135-1-doebel@amazon.de>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-357035-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] selftests: bonding: feed link monitor to deflake prio_test Date: Thu, 5 Nov 2026 10:19:08 +0800 Organization: Usenet Network Message-ID: <auvnnIXQV2zufxtF@fedora> References: <20261104142018.552135-1-doebel@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3547302"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:UXdOb74fNe/PfGt3kMXqlRLieK8= sha256:wvRx6mbRgc6XgN4xvpa+H4CxHrQJ4mVAnJUV6ozcmWE= sha1:+AQt7CzOxEjjzje5FXVoCsAE8e4= sha256:B2uu9a4Ed2GwrgWRcGXwM8A6HYgLPHcf0WUUFrH9klg= 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 BE136112E6A; Thu, 5 Nov 2026 05:58:20 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev 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 Eaqi2tAOM2Cl; Thu, 5 Nov 2026 05:58:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357035-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B4C8F112E50; Thu, 5 Nov 2026 05:58:03 +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 CE2E5616FF; Thu, 5 Nov 2026 02:19:29 +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=1793845167; b=a9MnI1LZMl8ZJk/RMI8hCCI2yOkHZ3bDUcJa7Enob6vD0Z2RCO7U07r/y9Dr0SH0/Ecu ieCaLue5e6EPdSq5dL2gJoW61/XylS9lTLRnLuKyj7Ng3Z+K1s035mVJEaU9NuhNfY5pt reVfhwW5sraUGgDiag2qb+24Scm72fc+QaRlDD01pMJdc1+UpvVYW4JZlQ309Qp6e55aw X4+BC6+89M2dYBGbqGIgXYYB0pVbycobsAgFgDK0lyQytt/1tPpY9BBQY5kcIW7JoaRhK KbT3IEHOGjcEuFKm45+HY+z4fU2fn+fNReHVmmtz98mYyMMkaLxBeOWLE7Cn9tTbYKA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793845167; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow: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; bh=vCAogybCaVTsP1wOzLL4HrNOiDNKINH4T30RdYUbjCY=; b=TAIh9ki3vn1MzBFg0nK2UhaHKhPe9oYnWgp4PGzvRdho6WMt063QtnbbnbhBNmaAi6+o scnWBeOof+1T+Iecxgpt9BP10Rsj6HNUHLHKN6zdtA/Ve+eUjQRELrcSGzKYtoDvYLfNM shWyv+GiOQ5inagVthNme2KrmwfObhpCoPnLRrUoSCQEa70KhjJgIzKNSjY+LEO4bT9Ik b1Yna4eiXkmra9sgJ3Y7Hj5f8XZ7jIdeHV5eJrOxfFYV0R5/XsiIaznRNyrGAtbWL0gQ7 zbMMN5M+eG47x/XUWpwUhbcUvRRlGfOv438Evlw4A9tbVTb2pFxo/8vmKGwnp5bIN7Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=cMjLdVAx; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; 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 8534D606A335; Thu, 5 Nov 2026 02:19:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=cMjLdVAx X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.22 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793845166; b=KOxbdSLOcALWZQrqNm2AXyVrdes8kNNh2dZUpcLKITZBCmqm+DC0W753psvtE3/5MALL T7ZwCIbTCFiytSyZJXwSxXyohgdob62jMNWzFkdgo6GbWGgVOUUdmWeLqYYNCK7VuFI44 GcTFuFLhqvBq3MM0huqKZE++2E6WIJnBfHG2icFUEA/SI/kgKcFxm7QxbkhApBbky/NbV sKLa6Wp9u2eRfr5BIX82s2us97NCPVpFaZ2GIGeOnHplUVVILs2WbgWUH3H2gye9Scxsf K1pF4RFwUqESvXAS0xSy9kalSBCOu0RtvHKyPPn08hAHyDRgZr1WozzFVKRTeOowNfw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793845166; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=vCAogybCaVTsP1wOzLL4HrNOiDNKINH4T30RdYUbjCY=; b=dRfXTuC+oVG66P/Y1nXqbgDyJN4iMBDdKl6HvVQItg6Xqm4DkvWvzFdCB83BfyEc8Kl+ lIudI1YTtug4EbDaQ4eeVmAehCBWemDFqJxbpsYSCce2XCJYLVaPjLE8ZbRZ5Sl8Sdxn/ vO7c/IIuXwBq3uzWZh9f7BRsF+9r5mDVll/uUpFzQIQw0UJCz06K0bd+u9hMo7tlQM/iX msXsj9aQ7qdo3FOGAUVfzUA7FCybEinRzDYK7k07rhBb1EBDT0VIjVYJT1HTIZ0Qhu2yB J+G/H3JjEKTOsStJCdiYf4W3fdPNLRvEKBFtLyYyCWj3A9GFoR3ZDxHYTbcS7eVapeg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=cMjLdVAx; arc=none smtp.remote-ip=91.218.175.22 X-Received: from mta0.migadu.com (out-22.mta0.migadu.com [91.218.175.22]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00E30606A32D for <netdev@vger.kernel.org>; Thu, 5 Nov 2026 02:19:25 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 00E30606A32D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=vq/2PwFpnYdqp7NYMLzjiV/QsikQgp5SP9E8rhZNyQ0=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1793845164; v=1; x=1794449964; b=cMjLdVAxCh4bj12YhMneUevGO4LeZ2PZgAyGoGtwCTtP5NJjPjxFrzCUCxgh22GA115GIjCL Tg6vaRK9+GALurt6WErLFeq7mGRQaZ7c4MzSaTj8lm6ccEOKt7eBiWKqha+5EZD7MQCCcwT8dUB /OMrLFFcpV/HTBG4UykurtLE= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta10.migadu.com with ESMTPS id 1851632e6d4801f8; Thu, 05 Nov 2026 02:19:23 +0000 X-Mizu-Trace-ID: 1851632e6d4801f8 X-Migadu-Flow: FLOW_OUT X-Cc: Jay Vosburgh <jv@jvosburgh.net>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org>, Hangbin Liu <liuhangbin@gmail.com>, Liang Li <liali@redhat.com>, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@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: <20261104142018.552135-1-doebel@amazon.de>