Searched refs:path_cost (Results 1 – 1 of 1) sorted by relevance
1607 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument1611 if (path_cost > BSTP_MAX_PATH_COST) in bstp_set_path_cost()1616 path_cost = 65535; in bstp_set_path_cost()1620 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()1624 bp->bp_path_cost = path_cost; in bstp_set_path_cost()1697 uint32_t path_cost; in bstp_calc_path_cost() local1713 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()1715 if (path_cost > BSTP_MAX_PATH_COST) in bstp_calc_path_cost()1716 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()1720 path_cost = 65535; in bstp_calc_path_cost()[all …]