Thread (8 messages) flat view 8 messages, 5 authors, 2017-05-22

Re: [PATCH net-next v2] bridge: fix hello and hold timers starting/stopping

From: Hangbin Liu <hidden>
Date: 2017-05-20 07:48:01
Also in: bridge

On Sat, May 20, 2017 at 09:06:16AM +0200, Ivan Vecera wrote:
2017-05-20 7:57 GMT+02:00 Hangbin Liu [off-list ref]:
quoted
On Fri, May 19, 2017 at 07:30:43PM +0200, Ivan Vecera wrote:
quoted
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.
quoted
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help