Lines Matching refs:bpdu
212 struct br_config_bpdu bpdu; in br_transmit_config() local
222 bpdu.topology_change = br->topology_change; in br_transmit_config()
223 bpdu.topology_change_ack = p->topology_change_ack; in br_transmit_config()
224 bpdu.root = br->designated_root; in br_transmit_config()
225 bpdu.root_path_cost = br->root_path_cost; in br_transmit_config()
226 bpdu.bridge_id = br->bridge_id; in br_transmit_config()
227 bpdu.port_id = p->port_id; in br_transmit_config()
229 bpdu.message_age = 0; in br_transmit_config()
233 bpdu.message_age = (jiffies - root->designated_age) in br_transmit_config()
236 bpdu.max_age = br->max_age; in br_transmit_config()
237 bpdu.hello_time = br->hello_time; in br_transmit_config()
238 bpdu.forward_delay = br->forward_delay; in br_transmit_config()
240 if (bpdu.message_age < br->max_age) { in br_transmit_config()
241 br_send_config_bpdu(p, &bpdu); in br_transmit_config()
252 const struct br_config_bpdu *bpdu) in br_record_config_information() argument
254 p->designated_root = bpdu->root; in br_record_config_information()
255 p->designated_cost = bpdu->root_path_cost; in br_record_config_information()
256 p->designated_bridge = bpdu->bridge_id; in br_record_config_information()
257 p->designated_port = bpdu->port_id; in br_record_config_information()
258 p->designated_age = jiffies - bpdu->message_age; in br_record_config_information()
261 + (bpdu->max_age - bpdu->message_age)); in br_record_config_information()
266 const struct br_config_bpdu *bpdu) in br_record_config_timeout_values() argument
268 br->max_age = bpdu->max_age; in br_record_config_timeout_values()
269 br->hello_time = bpdu->hello_time; in br_record_config_timeout_values()
270 br->forward_delay = bpdu->forward_delay; in br_record_config_timeout_values()
271 __br_set_topology_change(br, bpdu->topology_change); in br_record_config_timeout_values()
332 const struct br_config_bpdu *bpdu) in br_supersedes_port_info() argument
336 t = memcmp(&bpdu->root, &p->designated_root, 8); in br_supersedes_port_info()
342 if (bpdu->root_path_cost < p->designated_cost) in br_supersedes_port_info()
344 else if (bpdu->root_path_cost > p->designated_cost) in br_supersedes_port_info()
347 t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8); in br_supersedes_port_info()
353 if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8)) in br_supersedes_port_info()
356 if (bpdu->port_id <= p->designated_port) in br_supersedes_port_info()
520 const struct br_config_bpdu *bpdu) in br_received_config_bpdu() argument
530 if (br_supersedes_port_info(p, bpdu)) { in br_received_config_bpdu()
531 br_record_config_information(p, bpdu); in br_received_config_bpdu()
547 br_record_config_timeout_values(br, bpdu); in br_received_config_bpdu()
549 if (bpdu->topology_change_ack) in br_received_config_bpdu()