🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26216

Re: [PATCH net v2 2/3] bonding: update slave array on link change for broadcast mode

#26216
From: Hangbin Liu
Date: Thu, 03 Dec 2026 08:39
39 lines
10133 bytes
On Thu, Dec 03, 2026 at 06:29:52AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 0 · Medium: 2 (2) · Low: 0 (2)
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [Medium] In balance-rr, updelay is ignored for good after the bond has
>   been switched from broadcast mode.

This issue has been noted in the commit description.

> - [Medium] bonding: stale usable_slaves in bond_change_active_slave() on
>   LINK_BACK promotion

This is a valid concern. I'm think maybe we should remove usable arrays
for broadcast other than all these followup patches.

> 
> Pre-existing issues:
> - [Medium] This problem wasn't introduced by this patch, but ALB mode and
>   TLB with tlb_dynamic_lb=1 have the same stale usable_slaves problem…
> - [Medium] This problem wasn't introduced by this patch, but balance-rr
>   never implements the rule in bonding.rst section 13.1 ('when a bonding…
> - [Low] This problem wasn't introduced by this patch, but two comments
>   are stale.
> - [Low] This problem wasn't introduced by this patch, but
>   bond_miimon_inspect() reads usable_slaves->count with a plain load…

I will add these on my todo list.

Thanks
Hangbin
Technical Details
Message-ID: <axEqwoKBn16RFXBz@fedora>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376408-linux-kernel-netdev=dewy.ru
References: <20261201-bond_broadcast_updelay-v2-2-969e1844f2c4@kylinos.cn> <179627939278.3146.9699110701797983880@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376408-linux-kernel-netdev=dewy.ru
From: hangbin.liu@linux.dev (Hangbin Liu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 2/3] bonding: update slave array on link change
 for broadcast mode
Date: Thu, 3 Dec 2026 16:39:30 +0800
Organization: Usenet Network
Message-ID: <axEqwoKBn16RFXBz@fedora>
References: <20261201-bond_broadcast_updelay-v2-2-969e1844f2c4@kylinos.cn>
 <179627939278.3146.9699110701797983880@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2438131"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:E5y3JA4MfrjNkWx7fEIdy4NxbNU= sha256:+fwBZYNgP4J4/p+CyYzUrKwq0jjTWZy1SLd+z+3FsUI=
	sha1:TCsT7SqIEwd5ehYZLbTyrBu0giY= sha256:ZHH0CC6buCSl2KRaAFkFU62Vs/S0IvYfe1iD/c7xPUc=
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 B0461117882; Thu,  3 Dec 2026 11:40:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[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 (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 UWA3Rm7OAQXJ;
	Thu,  3 Dec 2026 11:40:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376408-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id CC7D4117881; Thu,  3 Dec 2026 11:40:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1534326786; Thu,  3 Dec 2026 08:39:56 +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=1796287194;
	b=wYJoMOR+VWtAZxIEJSD/up7XrEhbdubRxH/DWPHnWetz8raiMNHwzUvzBB+/fj8yHI/U
	 5/KU/nfb1z3RRQ+7xF7Yp388wSq5+bwas6SwOPB4zXW5/R3YTMd8mYXRfwgcGzS4YWPca
	 zU1SRmwAC+JX9RXkuPejROWoVT92hQ/937jArmLwvSidavaJXMMXHrmgTNNAne8ubmhCe
	 DtfMSX8nhHJ5dNAKZXp3A5WNa6/Pj9FdzxXgCPrrA8vzwa0qiYeWoQPhKqiWjN4JIicDH
	 M3fduysg8seYA4L29ldowBQSmrkDe0+aAGPC2bra36wdJD9Y9UdxzxEfXE8hv5Os0Sg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796287194;
	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:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=yOCAr2J64GhKuiMe/l+C6PLBgdjYnwIpdRihuoX0BXA=;
	b=4I7dB8QNAijq1MotWf/mNEfS7rArECGAa6cvzROk89Rew000KmEn0JZi/IizdPLVJutz
	 vY0uAxm6CHz6PUAlWVptRGTeYqQxz3f6IdMUZNW5kcAHb7ZKZBAppLSUSqtD0JXMV564r
	 zEUO120cfqLeDXfQi1qzRVOUaAqMywM1lA2Tm0JXaIIrEH6rMRWiVqGUyCtuoZjtsoH9e
	 T98UI0KpYkdP4Tp+FVgw13NI7UrtWK7w1cmg8z8ayw1AmZfCEINs5sgXVVPVceNIQgMac
	 8Xa7AprMQ4XLXd3vREJp4p4Cz4IqCB9aHqPHl6cSFHErrpyud+A2Oiz1jlTzV1T7dNg==
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=SSNsMGQ9;
	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 35306606A33B;
	Thu,  3 Dec 2026 08:39:54 +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=SSNsMGQ9
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.139
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796287188;
	b=lRV/s8b/vLN2n/BLrwji708BG3WdAOv6we0zuXFEoRcZJR5snmeJ1oZQwAosabvUybhC
	 uRqU/5cUdn2kQ7Sd50/8pysoY3fz4UW2+kcm0nRXd7sKwdtwTj6IhWi9ZusFTd12BjQz2
	 YE04skGvva9xIYc1RXHwm1t9RgkZB0Adzn+5lO+WnF7C1r3pLmWjbY1HniB2vvqw23pv9
	 ZlGkYA+3QyEWsmz/LYHt+10WMwB9LNVyoC1wwL++e4DQrqxbosFlRWzN5gbewstKHPIuh
	 /8oQD6Axs3nuUfxhhfwfTG1YlRf0FraP3bc9d1IPCxf2JTRcCOq/cvnSZKMHEPkHBNQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796287188;
	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:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=yOCAr2J64GhKuiMe/l+C6PLBgdjYnwIpdRihuoX0BXA=;
	b=GPLloBJH6Tn/IDuu8lb9LGTIChmnM8j2uURpZD0p2QveM8YOmr4rMEtLiyAzbObm8Zfe
	 XHXmYhqQssAqENTeLeJaSgDkeRvFNG9M8WRFQIKJI/HoOm3qz8/HMbs8zKR5a9ghqT4Nq
	 c4V7ttgqJfqDDHS7aEM4iBHDmkA8uy04jBgr9ZBQJO7RhBLjXOil+CEvrBAP3FBH2XZzp
	 7fqtfXq2pUDkpe4ygpntYBByOD6nPU8PEonIoNFV39/NWP5xZBFm1/9OXmAUZGA5lXE2S
	 3QC52QCV8JGR2+2XD6lspjeZWLt/1QWfySDveTGH/VcJVF4i+o+pb5tTpFgO3A5kulA==
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=SSNsMGQ9;
	arc=none smtp.remote-ip=95.215.58.139
X-Received: from mta1.migadu.com (out-139.mta1.migadu.com [95.215.58.139])
	(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 62593606A32D
	for <netdev@vger.kernel.org>; Thu,  3 Dec 2026 08:39:47 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 62593606A32D
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=wN0xHqpy8bJPuQp/5RJNflEDED+QJXrsV9adSEeGsxU=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1796287185; v=1; x=1796891985;
 b=SSNsMGQ9At/c+hqgkidR3gm2mUfuaKEu4J80lQzELuy34A+J7tRYo3A37tFfu2vAj7Qe9Dq/
 DfBdlCRKKMcjnD/Wt4QkFtzQkzJ4Z1f8P1Z1DuQLGgXvgySXEexBd0eELUPjkI5bglsJT+O9d0d
 KWmIN7gWFeY+SuM+hdsD1p/U=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by mta12.migadu.com with ESMTPS id 11a3384faef43118;
	Thu, 03 Dec 2026 08:39:45 +0000
X-Mizu-Trace-ID: 11a3384faef43118
X-Migadu-Flow: FLOW_OUT
X-Cc: jv@jvosburgh.net, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
	tonghao@bamaicloud.com, razor@blackwall.org, shuah@kernel.org,
	jiangjiehua1@huawei.com, netdev@vger.kernel.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: <179627939278.3146.9699110701797983880@kernel.org>