Searched refs:path_cost (Results 1 – 4 of 4) sorted by relevance
1629 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument1633 if (path_cost > BSTP_MAX_PATH_COST) in bstp_set_path_cost()1638 path_cost = 65535; in bstp_set_path_cost()1642 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()1646 bp->bp_path_cost = path_cost; in bstp_set_path_cost()1719 uint32_t path_cost; in bstp_calc_path_cost() local1735 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()1737 if (path_cost > BSTP_MAX_PATH_COST) in bstp_calc_path_cost()1738 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()1742 path_cost = 65535; in bstp_calc_path_cost()[all …]
114 int32_t path_cost; member333 int32_t path_cost);
665 bp->path_cost = k_info->ifbr_path_cost; in bridge_port_getinfo_conf()816 int32_t path_cost) in bridge_port_set_path_cost() argument821 if (path_cost < SNMP_PORT_MIN_PATHCOST || in bridge_port_set_path_cost()822 path_cost > SNMP_PORT_PATHCOST_OBSOLETE) in bridge_port_set_path_cost()830 b_req.ifbr_path_cost = path_cost; in bridge_port_set_path_cost()839 bp->admin_path_cost = path_cost; in bridge_port_set_path_cost()
488 ctx->scratch->int1 = bp->path_cost; in op_dot1d_stp_port()549 val->v.integer = bp->path_cost; in op_dot1d_stp_port()1251 ctx->scratch->int1 = bp->path_cost; in op_begemot_stp_port()1313 val->v.integer = bp->path_cost; in op_begemot_stp_port()