Home
last modified time | relevance | path

Searched refs:root_path_cost (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/net/bridge/
Dbr_stp.c150 br->root_path_cost = 0; in br_root_selection()
154 br->root_path_cost = p->designated_cost + p->path_cost; in br_root_selection()
189 bpdu.root_path_cost = br->root_path_cost; in br_transmit_config()
218 p->designated_cost = bpdu->root_path_cost; in br_record_config_information()
263 if (br->root_path_cost < p->designated_cost) in br_should_become_designated_port()
265 else if (br->root_path_cost > p->designated_cost) in br_should_become_designated_port()
305 if (bpdu->root_path_cost < p->designated_cost) in br_supersedes_port_info()
307 else if (bpdu->root_path_cost > p->designated_cost) in br_supersedes_port_info()
387 p->designated_cost = br->root_path_cost; in br_become_designated_port()
Dbr_stp_bpdu.c98 buf[13] = (bpdu->root_path_cost >> 24) & 0xFF; in br_send_config_bpdu()
99 buf[14] = (bpdu->root_path_cost >> 16) & 0xFF; in br_send_config_bpdu()
100 buf[15] = (bpdu->root_path_cost >> 8) & 0xFF; in br_send_config_bpdu()
101 buf[16] = bpdu->root_path_cost & 0xFF; in br_send_config_bpdu()
203 bpdu.root_path_cost = in br_stp_rcv()
Dbr_private_stp.h36 int root_path_cost; member
Dbr_ioctl.c133 b.root_path_cost = br->root_path_cost; in old_dev_ioctl()
Dbr_sysfs_br.c228 return sprintf(buf, "%d\n", to_bridge(d)->root_path_cost); in root_path_cost_show()
230 static DEVICE_ATTR_RO(root_path_cost);
Dbr_private.h228 u32 root_path_cost; member
/linux-4.1.27/include/uapi/linux/
Dif_bridge.h57 __u32 root_path_cost; member