bridge: Refresh STP statistics separately from status
authorJoe Stringer <joestringer@nicira.com>
Tue, 26 Nov 2013 05:44:18 +0000 (05:44 +0000)
committerEthan Jackson <ethan@nicira.com>
Wed, 11 Dec 2013 01:28:20 +0000 (17:28 -0800)
commitfd28ce3ae7c11542c4681d45040ac1970b0ba702
tree34c8e575aa48db46b0001112539089cc3d1723ee
parentdeaa2985faa924fe2f87f669bdcd35617ffe774f
bridge: Refresh STP statistics separately from status

Currently, we refresh STP status (id, state, role) alongside
statistics (rx, tx, errors), all within instant_stats_run(). This
patch splits statistics out, and refreshes them with the 5 second
stats instead. This paves the way to reducing execution of
instant_stats_run().

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c