]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: stp: when using userspace stp stop kernel hello and hold timers
authorNikolay Aleksandrov <razor@blackwall.org>
Thu, 23 Jul 2015 18:01:05 +0000 (11:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2015 06:33:20 +0000 (23:33 -0700)
commitf99f383fc732e38c249f1ee9d1634307b9dff7c3
treecd59c7fc695b814aea9022c0636298023915fefc
parent38f350c23717f5328fd5f288bfe1e9b3c07d0cfb
bridge: stp: when using userspace stp stop kernel hello and hold timers

These should be handled only by the respective STP which is in control.
They become problematic for devices with limited resources with many
ports because the hold_timer is per port and fires each second and the
hello timer fires each 2 seconds even though it's global. While in
user-space STP mode these timers are completely unnecessary so it's better
to keep them off.
Also ensure that when the bridge is up these timers are started only when
running with kernel STP.

Signed-off-by: Satish Ashok <sashok@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp.c
net/bridge/br_stp_if.c
net/bridge/br_stp_timer.c