put_duplexes(ds, "10M", features, OFPPF_10MB_HD, OFPPF_10MB_FD);
put_duplexes(ds, "100M", features,
OFPPF_100MB_HD, OFPPF_100MB_FD);
- put_duplexes(ds, "1G", features, OFPPF_100MB_HD, OFPPF_100MB_FD);
+ put_duplexes(ds, "1G", features, OFPPF_1GB_HD, OFPPF_1GB_FD);
if (features & OFPPF_10GB_FD) {
ds_put_cstr(ds, " 10G");
}
speed = 100;
} else if (new->curr & (OFPPF_1GB_HD | OFPPF_1GB_FD)) {
speed = 1000;
- } else if (new->curr & OFPPF_100MB_FD) {
+ } else if (new->curr & OFPPF_10GB_FD) {
speed = 10000;
}
stp_port_set_speed(p, speed);