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=yUObcgh8Pq21MGmRaavA715su82ECMSa21FVnGisge0R/gWgFIMzdyW94yjdq+qUsJSl JEEZlxskZmhn3LM/qUQQG+Q+ioH7/Fcie+vmjVGt1DWU5TvBAELZYIv7QACRiOG07ZzJh M0txfOSHp2ZRLpkDMaR7xiGBBRxP2LeblrJ91Z4Y9bTypwYlLLZgKBzWLH29v1wNHarN+ FyXbz2rBD2bZbUKGE/sbj7PHeR+G/zs8R9St1dFK6leJm/DIqhMyWS1Q2bud4bUBh5YsF 32ZiutjrAd8wACfd0q57Gnd4F4N7VUl8UO5OzTcIT2I8BlyqV0fTq9HlSdWLqeE1S3w== 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=lVkdjfd0l1PrcGnKC0daMgn827bwJ1hv2V2EenC57zeIdalrQC2ue+W3mxZ4u1EqMwhQ eR35eG2h6yRs25q7hqFKcl1+psScyLSsJO6gVYmRhpZAq5IpyPsCzttBFcqreDYyhkk29 y4NbFjGOJdiEgxIeiVJhqM9cIscwqdt69fKE/M5byXKGFy8Osh7iIgxU+D2/XMeXQHynM k4VB+S+DYdgqtWkXvRc51GLN6/tjHX747CuJ6JCIj6ykqfLn1qnT9qNGntFUp3RIw9H4e TQmPuz1YDWcJ0A0/plz5Bv27xsiALhA5kiSYBeK823s/k5XDFS4VNlpi+J3HKgAAW6g== 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 A834D606A32C for ; Fri, 4 Dec 2026 05:03:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A834D606A32C 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-55d2f5f1e1dso7421711cf.3 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=SgUwBz6ryr58rVKoAAUM/dsFO5fwFa4edOkz47DiSsBqugUWtH6ZjXMasNlFCRSMf8 jSQf+VG8Hb7wg5ynkkPtAznChlqSCZE0SPvq5fos+tVmjKRAAAyCMvYfBjpGHlZgJRfr 3fAEFX7ukq7Ptiykh5+/NZKabAxnYajOQLVAGDpYbr8+LG7sc6XfVwMg/WXq+U18Atuc pg7GPn6p/WY5aSVbr8nMPBsZW0PRPd0UBCIwt9jlR7wYA8cnnlKc+1RvkAMr/Vk38WFt VZjfAw72q8AXiUs40C2uzB/WF4QEbj+6mlF22TEhZneIvzWePg2tkZK5L62ITczhLTZo 7/yw== X-Forwarded-Encrypted: i=1; AL+hErGxrp1dGM7Uo5bEHSJnhroka4o5Aan6bzckdlQkWmBB4MGr4v3ZKvfpNUHsZplFhPup5dvKkPU=@vger.kernel.org X-Gm-Message-State: APuU4Z+7TDXQHbekF2g92SuiT+jmTe+U6iGYHVit1y8+56Lmvjayb117 Gg/ZB/07grv72YgpaUVscTWX4Sq1+Dz0j2mAgysFYf3LbnfcMQASQhwUG6Sja0vu9Rm+oMhkkqg Opzqx0yvQsQ== 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: netdev@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.