Searched refs:path_cost (Results 1 – 1 of 1) sorted by relevance
1767 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument1771 if (path_cost > BSTP_MAX_PATH_COST) { in bstp_set_path_cost()1776 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535) { in bstp_set_path_cost()1777 path_cost = 65535; in bstp_set_path_cost()1782 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()1786 bp->bp_path_cost = path_cost; in bstp_set_path_cost()1864 uint32_t path_cost; in bstp_calc_path_cost() local1882 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()1884 if (path_cost > BSTP_MAX_PATH_COST) { in bstp_calc_path_cost()1885 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()[all …]