Searched refs:path_cost (Results 1 – 8 of 8) sorted by relevance
332 int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost) in br_stp_set_path_cost() argument334 if (path_cost < BR_MIN_PATH_COST || in br_stp_set_path_cost()335 path_cost > BR_MAX_PATH_COST) in br_stp_set_path_cost()339 p->path_cost = path_cost; in br_stp_set_path_cost()
128 if (p->designated_cost + p->path_cost < in br_should_become_root_port()129 rp->designated_cost + rp->path_cost) in br_should_become_root_port()131 else if (p->designated_cost + p->path_cost > in br_should_become_root_port()132 rp->designated_cost + rp->path_cost) in br_should_become_root_port()190 br->root_path_cost = p->designated_cost + p->path_cost; in br_root_selection()
262 p.path_cost = pt->path_cost; in br_dev_siocdevprivate()
86 return sprintf(buf, "%d\n", p->path_cost); in show_path_cost()89 static BRPORT_ATTR(path_cost, 0644,
80 p->path_cost = port_cost(dev); in br_port_carrier_check()438 p->path_cost = port_cost(dev); in new_nbp()
402 u32 path_cost; member1964 int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost);
242 nla_put_u32(skb, IFLA_BRPORT_COST, p->path_cost) || in br_port_fill_attrs()
82 __u32 path_cost; member