Searched refs:path_cost (Results 1 – 4 of 4) sorted by relevance
1627 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument1631 if (path_cost > BSTP_MAX_PATH_COST) in bstp_set_path_cost()1635 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535) in bstp_set_path_cost()1636 path_cost = 65535; in bstp_set_path_cost()1640 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()1644 bp->bp_path_cost = path_cost; in bstp_set_path_cost()1717 uint32_t path_cost; in bstp_calc_path_cost() local1733 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()1735 if (path_cost > BSTP_MAX_PATH_COST) in bstp_calc_path_cost()1736 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()[all …]
112 int32_t path_cost; member331 int32_t path_cost);
663 bp->path_cost = k_info->ifbr_path_cost; in bridge_port_getinfo_conf()814 int32_t path_cost) in bridge_port_set_path_cost() argument819 if (path_cost < SNMP_PORT_MIN_PATHCOST || in bridge_port_set_path_cost()820 path_cost > SNMP_PORT_PATHCOST_OBSOLETE) in bridge_port_set_path_cost()828 b_req.ifbr_path_cost = path_cost; in bridge_port_set_path_cost()837 bp->admin_path_cost = path_cost; in bridge_port_set_path_cost()
486 ctx->scratch->int1 = bp->path_cost; in op_dot1d_stp_port()547 val->v.integer = bp->path_cost; in op_dot1d_stp_port()1249 ctx->scratch->int1 = bp->path_cost; in op_begemot_stp_port()1311 val->v.integer = bp->path_cost; in op_begemot_stp_port()