[PATCH net] bridge: stp: when using userspace stp stop kernel hello and hold timers

2015-07-23 Thread Nikolay Aleksandrov
From: Satish Ashok sas...@cumulusnetworks.com Stop the kernel STP hello and hold timers when user-space STP is being used to stop generating both packets. These should be handled only by the respective STP which is in control. Also ensure that when the bridge is up these timers are started only

Re: [PATCH net] bridge: stp: when using userspace stp stop kernel hello and hold timers

2015-07-23 Thread Stephen Hemminger
On Thu, 23 Jul 2015 09:07:37 -0700 Nikolay Aleksandrov niko...@cumulusnetworks.com wrote: + /* Stop hello and hold timer */ + spin_lock_bh(br-lock); + del_timer(br-hello_timer); + list_for_each_entry(p, br-port_list, list) +

Re: [PATCH net] bridge: stp: when using userspace stp stop kernel hello and hold timers

2015-07-23 Thread Stephen Hemminger
On Thu, 23 Jul 2015 19:05:56 +0200 Nikolay Aleksandrov niko...@cumulusnetworks.com wrote: On 07/23/2015 06:59 PM, Stephen Hemminger wrote: On Thu, 23 Jul 2015 09:07:37 -0700 Nikolay Aleksandrov niko...@cumulusnetworks.com wrote: + /* Stop hello and hold timer */ +

Re: [PATCH net] bridge: stp: when using userspace stp stop kernel hello and hold timers

2015-07-23 Thread Nikolay Aleksandrov
On 07/23/2015 07:13 PM, Stephen Hemminger wrote: On Thu, 23 Jul 2015 19:05:56 +0200 Nikolay Aleksandrov niko...@cumulusnetworks.com wrote: On 07/23/2015 06:59 PM, Stephen Hemminger wrote: On Thu, 23 Jul 2015 09:07:37 -0700 Nikolay Aleksandrov niko...@cumulusnetworks.com wrote: +

Re: [PATCH net] bridge: stp: when using userspace stp stop kernel hello and hold timers

2015-07-23 Thread Nikolay Aleksandrov
On 07/23/2015 06:59 PM, Stephen Hemminger wrote: On Thu, 23 Jul 2015 09:07:37 -0700 Nikolay Aleksandrov niko...@cumulusnetworks.com wrote: +/* Stop hello and hold timer */ +spin_lock_bh(br-lock); +del_timer(br-hello_timer); +