Searched refs:path_cost (Results 1 – 7 of 7) sorted by relevance
285 int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost) in br_stp_set_path_cost() argument287 if (path_cost < BR_MIN_PATH_COST || in br_stp_set_path_cost()288 path_cost > BR_MAX_PATH_COST) in br_stp_set_path_cost()292 p->path_cost = path_cost; in br_stp_set_path_cost()
79 if (p->designated_cost + p->path_cost < in br_should_become_root_port()80 rp->designated_cost + rp->path_cost) in br_should_become_root_port()82 else if (p->designated_cost + p->path_cost > in br_should_become_root_port()83 rp->designated_cost + rp->path_cost) in br_should_become_root_port()142 br->root_path_cost = p->designated_cost + p->path_cost; in br_root_selection()
61 return sprintf(buf, "%d\n", p->path_cost); in show_path_cost()64 static BRPORT_ATTR(path_cost, S_IRUGO | S_IWUSR,
222 p.path_cost = pt->path_cost; in old_dev_ioctl()
72 p->path_cost = port_cost(dev); in br_port_carrier_check()221 p->path_cost = port_cost(dev); in new_nbp()
144 u32 path_cost; member735 unsigned long path_cost);
55 nla_put_u32(skb, IFLA_BRPORT_COST, p->path_cost) || in br_port_fill_attrs()