Index: sys/dev/etherswitch/e6000sw/e6000sw.c =================================================================== --- sys/dev/etherswitch/e6000sw/e6000sw.c +++ sys/dev/etherswitch/e6000sw/e6000sw.c @@ -543,6 +543,9 @@ E6000SW_LOCK(sc); } + while ((sc->ports_mask & (1 << (sc->num_ports - 1))) == 0) + --sc->num_ports; + etherswitch_info.es_nports = sc->num_ports; /* Default to port vlan. */