aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vswitchd/bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 5e2ad697..29f9c45e 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -826,7 +826,7 @@ port_configure_stp(const struct ofproto *ofproto, struct port *port,
bitmap_set1(port_num_bitmap, port_idx);
port_s->port_num = port_idx;
} else {
- if (*port_num_counter > STP_MAX_PORTS) {
+ if (*port_num_counter >= STP_MAX_PORTS) {
VLOG_ERR("port %s: too many STP ports, disabling", port->name);
port_s->enable = false;
return;