stp,rstp: disable learning and forwarding in STP/RSTP disabled state.
authorDaniele Venturino <daniele.venturino@m3s.it>
Fri, 14 Nov 2014 22:07:50 +0000 (14:07 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 14 Nov 2014 22:07:50 +0000 (14:07 -0800)
commit4b5f19962adccfb3b4a431c9787c45e2c410ab55
treef5d9e6180dce7d1892ee244f1cf5ca4a03531fdb
parent53a686410e081981baa2acbe7f4c82853918610c
stp,rstp: disable learning and forwarding in STP/RSTP disabled state.

There is a difference between a port with STP/RSTP protocol enabled and a
disabled role and a port which has a disabled role because STP/RSTP is
not active.  This commit ensure to make such distinction.

Standard 802.1D claims that the Topology Change state machine (17.31)
treats a Port as no longer active when it becomes an Alternate, Backup,
or Disabled Port and stops learning from received frames.

Signed-off-by: Daniele Venturino <daniele.venturino@m3s.it>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/rstp.h
lib/stp.c
ofproto/ofproto-dpif-xlate.c
ofproto/ofproto-dpif.c