lib/stp: Some debugging support.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 22 Aug 2014 16:01:34 +0000 (09:01 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 9 Sep 2014 18:45:43 +0000 (11:45 -0700)
commitfb20b0bf5d77268cc103b2c7a0f5b976f8d05773
treeddfd58543b30e377b697422cfd6d50931965f3c7
parent9a0bb428332bbff251465830a13dbfd1d0d865c3
lib/stp: Some debugging support.

Set the stp port name before enabling it, so that debugging messages
have the name to print out.

Do not treat the first state initialization as a state change.  Zero
is not a valid state, so changing from zero to STP_DISABLED is not a
state change.

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