From: willemb@google.com
To: Hangbin Liu <hangbin.liu@linux.dev>, willemb@google.com
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>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] bonding: roll back fail_over_mac if enslave fails
Date: Fri, 04 Dec 2026 00:03:00 -0500 [thread overview]
Message-ID: <willemb.320cec3759115@google.com> (raw)
In-Reply-To: <axDjUdZzsi5OisBe@fedora>
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 <liuhangbin@kylinos.cn>
> >
> > > 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 <liuhangbin@kylinos.cn>
> >
> > 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.
prev parent reply other threads:[~2026-12-04 5:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 12:34 [PATCH net-next] bonding: roll back fail_over_mac if enslave fails Hangbin Liu
2026-11-24 12:38 ` netdev-bot+sinfo
2026-12-02 9:35 ` Paolo Abeni
2026-12-03 1:40 ` Hangbin Liu
2026-11-30 11:28 ` Daniel Machon
2026-12-03 2:02 ` willemb
2026-12-03 3:34 ` Hangbin Liu
2026-12-04 5:03 ` willemb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=willemb.320cec3759115@google.com \
--to=willemb@google.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hangbin.liu@linux.dev \
--cc=jv@jvosburgh.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox