bstp_calc_path_cost
static uint32_t bstp_calc_path_cost(struct bstp_port *);
bp->bp_path_cost = bstp_calc_path_cost(bp);
cost = bstp_calc_path_cost(bp);