Lines Matching defs:root_port
410 struct bridge_iflist *root_port = NULL, *bif;
421 if (root_port == NULL)
424 if (bif->bif_designated_root < root_port->bif_designated_root)
426 if (bif->bif_designated_root > root_port->bif_designated_root)
430 (root_port->bif_designated_cost + root_port->bif_path_cost))
433 (root_port->bif_designated_cost + root_port->bif_path_cost))
437 root_port->bif_designated_bridge)
440 root_port->bif_designated_bridge)
443 if (bif->bif_designated_port < root_port->bif_designated_port)
445 if (bif->bif_designated_port > root_port->bif_designated_port)
448 if (bif->bif_port_id >= root_port->bif_port_id)
451 root_port = bif;
454 sc->sc_root_port = root_port;
455 if (root_port == NULL) {
459 sc->sc_designated_root = root_port->bif_designated_root;
460 sc->sc_root_path_cost = root_port->bif_designated_cost +
461 root_port->bif_path_cost;