Lines Matching defs:path_cost
1690 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost)
1694 if (path_cost > BSTP_MAX_PATH_COST)
1698 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535)
1699 path_cost = 65535;
1703 if (path_cost == 0) { /* use auto */
1707 bp->bp_path_cost = path_cost;
1780 uint32_t path_cost;
1796 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000);
1798 if (path_cost > BSTP_MAX_PATH_COST)
1799 path_cost = BSTP_MAX_PATH_COST;
1802 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535)
1803 path_cost = 65535;
1805 return (path_cost);