stp: Track BPDU tx and rx counts.
[openvswitch] / lib / stp.h
index 54f7f5b4527a75bcab3f4e0ca63804a5c16103d7..ec29d9a77a9954d8dd54b4ee5bf5cc87828a54e9 100644 (file)
--- a/lib/stp.h
+++ b/lib/stp.h
@@ -136,6 +136,8 @@ int stp_port_no(const struct stp_port *);
 int stp_port_get_id(const struct stp_port *);
 enum stp_state stp_port_get_state(const struct stp_port *);
 enum stp_role stp_port_get_role(const struct stp_port *);
+void stp_port_get_counts(const struct stp_port *,
+                         int *tx_count, int *rx_count, int *error_count);
 void stp_port_enable(struct stp_port *);
 void stp_port_disable(struct stp_port *);
 void stp_port_set_priority(struct stp_port *, uint8_t new_priority);