From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796360583; b=TCh+wzIJISu8R2K5J+ZMJKuw2ux+Owv+oTifIiB+E1gHWs+uo/fNchKNHTVCBBc19mhx +P4RZLbhvgulsZYw/C/P9to99QOFdc4X2cXWmgVIjE6Hrd4Et/3tyuBLR4CX+uCwmQ5Zl Kpm5M8tboUOQCqbzHp6davuHF2x4owCk+f0wmc8e0Jo/+WM9KbXxZLv68e7DDl68kXhoN I8sURzmXTz7hxL+j/aUwmB3tvbAn9qvQGQ51muhOyxgzDpoZ4r4McEh7vTBcMHdLZ2zOO Yspft6zhugfFurCCUNGtUye3JsnZppFG3xUVpksdW+o7FSJ2xAiO1dMI1fgaDs54MAw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796360583; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=MSBpPnUryQ2zYr8JIP6OXClyWon93Q3mGL2+Si2DYSg=; b=JXIj4SZCelp8+U1PfwusDVuUgY0I4mJ9QCUcDrpW/L+wrea+Ck/aTdtG5U3Z9Vem8eCI 91MSopvtUeQtyG0jHG6Wvh2LV9knEr+ue6Q9Npc5wfuwqPVmmNx48SCYMoNDzgXVs1UWB i6+Dy4+wXXeM/1VAnlyqoPU8RQ55PoUEn+qCABsuiRb148HEnE2F1W5QDCGLGYb/+WFzh E5135XzMuRfyxWosBj+ohDGX1MpnagIAohpEgQUEGJ+7wyThJdRvGmPI4YiGk9DxLDVfv Mjb/APXSylk+H3d4FluPp8Wd7NmNRk7y/43mPZ4qaSSPHiSIFxu1FjZrYOoTEtthSmw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b="Cbout/Wn"; arc=none smtp.remote-ip=209.85.160.199 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (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 A82B9606A322 for ; Fri, 4 Dec 2026 05:03:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A82B9606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Cbout/Wn Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-542fc61841eso14619571cf.0 for ; Thu, 03 Dec 2026 21:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796360582; x=1796965382; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=MSBpPnUryQ2zYr8JIP6OXClyWon93Q3mGL2+Si2DYSg=; b=Cbout/WnWfLBfRTnduivQMPYnRMzJ71vaoPbNgS42Lvq8cGZeYsWpDQpp35opVdlWs O12akTc4FXUIjuZD4Ve6nZQ0du2iGZzogClIzRBOx+NqOskzRYye+7UCjUq2xtXtg2rA t49wtzDUh1WpT5UjEKmbgEGoTyY9ub7cKtg8lL8MaCEXmmhQsc8bSScGHHx/obCLOiij 0/Gs54k/NcX5f1Om3uNwqyCHHVxoXFCHhSGEu+1agYCA0kScz3PcHNGaAZqR6D0sa2JN vs/4wBex1xYiarFNw+H15gOsLfmZ4wJgZFnntkrKNDs5scZq2CUdtBA6cSPsqQZSERIn Eh4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796360582; x=1796965382; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=MSBpPnUryQ2zYr8JIP6OXClyWon93Q3mGL2+Si2DYSg=; b=NW7Ya0wK+CMb42W7FE+XFdw/A5HXIi7DA+WWWRkG70DiBSMLbk/In9uGzjBAAiCYsF ojkxtDja9CpulypCEt8ovThyBb1CHRQTVPOfJancJYlpDh9E00ynhj1qZYKlCqT2PKWR qf4Xxoy2guHQP1u51ErCEprlWabVVsOSjt4xizXxt3aKUe/5gzETkkeEis+9mOEKHaIb Y39sORsDUEmy/opdgpkVKXCg+tHOfVLYYOi8kzlID6GmnfyX2TLcqX3JED24Lvn+eRp/ 7secR5iEu/MrgFEbA2cRR4eOiqetyt3RjHtNpNmFaOUBDZEi26WvQPpUFj9tcjF9JxN6 jfgQ== X-Forwarded-Encrypted: i=1; AL+hErEjS17EvOpnGEQmER+ALgyOnkYBXrlJo/bC2BKmYQYKNlYSveDHNunqsHyDYTuizkKmyAk606iao6TEQi8=@vger.kernel.org X-Gm-Message-State: APuU4Z9Ypy0ncNrTKS9KPCqr11GI1ABQPMUQO2PilBq+6zEnJj1URpgx RArBq4Xn0v9wLVj8R7kbXI0XmdmV2X5EyGGgb06BQ113j9XFpKBQkib/fUogpfajzeoR57UxTLD QEl+fvGGKHw== X-Received: from qtqv24.prod.google.com ([2002:ac8:7498:0:b0:536:7013:6443]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:622a:1a97:b0:535:a5fb:644f with SMTP id d75a77b69052e-55e38f9dd9dmr13353101cf.73.1796360581483; Thu, 03 Dec 2026 21:03:01 -0800 (PST) Date: Fri, 04 Dec 2026 00:03:00 -0500 In-Reply-To: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261124-bond_fail_over_mac-v1-1-9caee319331f@kylinos.cn> Message-ID: Subject: Re: [PATCH net-next] bonding: roll back fail_over_mac if enslave fails From: willemb@google.com To: Hangbin Liu , willemb@google.com Cc: Jay Vosburgh , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Hangbin Liu wrote: > Hi Willem, > On Wed, Dec 02, 2026 at 09:02:01PM -0500, willemb@google.com wrote: > > Hangbin Liu wrote: > > > From: Hangbin Liu > > > > > bond_enslave() can change bond->params.fail_over_mac as a side > > > effect: when the first slave cannot set its own MAC address and the > > > bond is in active-backup mode, fail_over_mac is forced to "active" so > > > bonding never writes the slave MAC. If enslave fails later, the > > > forced value stays behind, silently changing a user-configured > > > option after a failed operation and affecting subsequent failover > > > behaviour. > > > > > Snapshot fail_over_mac on entry and restore it on the error path. > > > > > Signed-off-by: Hangbin Liu > > > > When respinning, please fold the discovery context and the > WireGuard + > > XDP > > reproducer from your reply to Paolo into the commit message (per > sinfo), > > and consider adding: > > > > Fixes: 3915c1e8634a ("bonding: Add "follow" option to > fail_over_mac") > > > > Also if targeting net-next. > Sometimes I'm a little confused whether the small/corner fix should be > target > to net or next. Usually we post all fix to net. But last time I was told > to post none critical, small fix to net-next. Understood. It's a bit of a gray area. That is the guidance. So the current target is good. I only meant to add that even when redirecting a less critical fix to net-next, it's still fine to document the Fixes.