From: Hangbin Liu <liuhangbin@gmail.com>
To: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
Mahesh Bandewar <maheshb@google.com>,
Shuah Khan <shuah@kernel.org>,
linux-kselftest@vger.kernel.org, Liang Li <liali@redhat.com>
Subject: Re: [PATCH net 2/3] bonding: restructure ad_churn_machine
Date: Fri, 28 Nov 2025 00:26:15 +0000 [thread overview]
Message-ID: <aSjsJxaB5LmHYM3d@fedora> (raw)
In-Reply-To: <7f7238d8-bf0d-43f3-8474-7798e8b18090@redhat.com>
On Thu, Nov 27, 2025 at 04:29:47PM +0100, Paolo Abeni wrote:
> >> Please avoid white-space changes only, or if you are going to target
> >> net-next, move them to a pre-req patch.
> >
> > OK, what's pre-req patch?
>
> I mean: a separate patch, earlier in the series, to keep cosmetic and
> functional changes separated and more easily reviewable.
Sure
> >>> + if (actor_synced) {
> >>> + port->sm_vars &= ~AD_PORT_ACTOR_CHURN;
> >>> port->sm_churn_actor_state = AD_NO_CHURN;
> >>> - } else {
> >>> - port->churn_actor_count++;
> >>> - port->sm_churn_actor_state = AD_CHURN;
> >>> + actor_churned = false;
> >>> }
> >>
> >> I think this part is not described by the state diagram above?!?
> >
> > This part is about path (3), port in monitor or churn, and actor is in sync.
> > Then move to state no_churn.
> >
> > Do you mean port->sm_vars &= ~AD_PORT_ACTOR_CHURN is not described?
> > Hmm, maybe we don't need this after re-organise.
>
> I mean the state change in the else part, I can't map them in the state
> machine diagram.
The "else" line is removed
Thanks
Hangbin
next prev parent reply other threads:[~2025-11-28 0:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-24 4:33 [PATCH net 0/3] bonding: fix 802.3ad churn machine and port state issues Hangbin Liu
2025-11-24 4:33 ` [PATCH net 1/3] bonding: set AD_RX_PORT_DISABLED when disabling a port Hangbin Liu
2025-11-27 10:15 ` Paolo Abeni
2025-11-27 13:33 ` Hangbin Liu
2025-11-24 4:33 ` [PATCH net 2/3] bonding: restructure ad_churn_machine Hangbin Liu
2025-11-27 10:36 ` Paolo Abeni
2025-11-27 14:06 ` Hangbin Liu
2025-11-27 15:29 ` Paolo Abeni
2025-11-28 0:26 ` Hangbin Liu [this message]
2025-11-24 4:33 ` [PATCH net 3/3] selftests: bonding: add mux and churn state testing Hangbin Liu
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=aSjsJxaB5LmHYM3d@fedora \
--to=liuhangbin@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jv@jvosburgh.net \
--cc=kuba@kernel.org \
--cc=liali@redhat.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).