diff options
author | Justin Pettit <jpettit@nicira.com> | 2011-11-14 15:04:14 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-11-15 09:29:08 -0800 |
commit | 80740385d2700b1a03d28a02338d02509fd0b697 (patch) | |
tree | 4925837919dc7356f3484b3c80d70c658d38c095 /ofproto/ofproto.h | |
parent | 8ddc056dd1e2c150c3bf8bb16811815736beb554 (diff) |
stp: Track BPDU tx and rx counts.
When debugging spanning tree, it's useful to have counters about how
many BPDUs have been sent and received. This commit keeps track of
these counters and stores them in a new "statistics" column of the Port
table.
Feature #8103
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r-- | ofproto/ofproto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 4b37bd78..eed4e508 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -94,6 +94,9 @@ struct ofproto_port_stp_status { enum stp_state state; unsigned int sec_in_state; enum stp_role role; + int tx_count; /* Number of BPDUs transmitted. */ + int rx_count; /* Number of valid BPDUs received. */ + int error_count; /* Number of bad BPDUs received. */ }; /* How the switch should act if the controller cannot be contacted. */ |