From: Hangbin Liu <liuhangbin@gmail.com>
To: ivan.vecera@cera.cz
Cc: network dev <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>,
sashok@cumulusnetworks.com,
Stephen Hemminger <stephen@networkplumber.org>,
bridge@lists.linux-foundation.org,
Xin Long <lucien.xin@gmail.com>,
Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Subject: Re: [PATCH net-next v2] bridge: fix hello and hold timers starting/stopping
Date: Sat, 20 May 2017 15:47:48 +0800 [thread overview]
Message-ID: <20170520074748.GB12974@leo.usersys.redhat.com> (raw)
In-Reply-To: <CA+Nub0aY6hjWeg8h2Qgx_c+yazh5WnA1u0D8bDtxChjWXsEHSw@mail.gmail.com>
On Sat, May 20, 2017 at 09:06:16AM +0200, Ivan Vecera wrote:
> 2017-05-20 7:57 GMT+02:00 Hangbin Liu <liuhangbin@gmail.com>:
> > On Fri, May 19, 2017 at 07:30:43PM +0200, Ivan Vecera wrote:
> >> Current bridge code incorrectly handles starting/stopping of hello and
> >> hold timers during STP enable/disable.
> >>
> >> 1. Timers are stopped in br_stp_start() during NO_STP->USER_STP
> >> transition. The timers are already stopped in NO_STP state so
> >> this is confusing no-op.
> >
> > Hi Ivan,
> >
> > Shouldn't we start hello timer in br_stp_start when NO_STP -> BR_KERNEL_STP ?
>
> As Nikolay mentioned, this is fixed by
> https://patchwork.ozlabs.org/patch/764685/
Ah, sorry. My mistake. I only saw xin's patch and your v2 patch. So I mixed
them up and thought this is xin's V2 patch. That's why I wonder we didn't
start hello timer in br_stp_start...
Now I see your v1 patch with:
The patch is a follow-up for "bridge: start hello_timer when enabling
KERNEL_STP in br_stp_start" patch from Xin Long."
Sorry for mixed them up.
>
> >>
> >> 2. During USER_STP->NO_STP transition the timers are started. This
> >> does not make sense and is confusion because the timer should not be
> >> active in NO_STP state.
> >
> > Yes, but what about BR_KERNEL_STP -> NO_STP in function br_stp_stop() ?
>
> The timer is lazily stopped by itself in its handler... or not rearmed
> respectively.
Yes, with xin's patch this timer will stoped by itself.
Thanks
Hangbin
next prev parent reply other threads:[~2017-05-20 7:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 17:30 [PATCH net-next v2] bridge: fix hello and hold timers starting/stopping Ivan Vecera
2017-05-19 17:35 ` Xin Long
2017-05-19 20:12 ` Nikolay Aleksandrov
2017-05-20 5:57 ` Hangbin Liu
2017-05-20 6:55 ` Nikolay Aleksandrov
2017-05-20 7:06 ` Ivan Vecera
2017-05-20 7:47 ` Hangbin Liu [this message]
2017-05-22 18:41 ` David Miller
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=20170520074748.GB12974@leo.usersys.redhat.com \
--to=liuhangbin@gmail.com \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=ivan.vecera@cera.cz \
--cc=lucien.xin@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=sashok@cumulusnetworks.com \
--cc=stephen@networkplumber.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).