Lines Matching refs:bpdu
16 /* since time values in bpdu are in jiffies and then scaled (1/256)
192 struct br_config_bpdu bpdu;
202 bpdu.topology_change = br->topology_change;
203 bpdu.topology_change_ack = p->topology_change_ack;
204 bpdu.root = br->designated_root;
205 bpdu.root_path_cost = br->root_path_cost;
206 bpdu.bridge_id = br->bridge_id;
207 bpdu.port_id = p->port_id;
209 bpdu.message_age = 0;
213 bpdu.message_age = (jiffies - root->designated_age)
216 bpdu.max_age = br->max_age;
217 bpdu.hello_time = br->hello_time;
218 bpdu.forward_delay = br->forward_delay;
220 if (bpdu.message_age < br->max_age) {
221 br_send_config_bpdu(p, &bpdu);
232 const struct br_config_bpdu *bpdu)
234 p->designated_root = bpdu->root;
235 p->designated_cost = bpdu->root_path_cost;
236 p->designated_bridge = bpdu->bridge_id;
237 p->designated_port = bpdu->port_id;
238 p->designated_age = jiffies - bpdu->message_age;
241 + (bpdu->max_age - bpdu->message_age));
246 const struct br_config_bpdu *bpdu)
248 br->max_age = bpdu->max_age;
249 br->hello_time = bpdu->hello_time;
250 br->forward_delay = bpdu->forward_delay;
251 __br_set_topology_change(br, bpdu->topology_change);
312 const struct br_config_bpdu *bpdu)
316 t = memcmp(&bpdu->root, &p->designated_root, 8);
322 if (bpdu->root_path_cost < p->designated_cost)
324 else if (bpdu->root_path_cost > p->designated_cost)
327 t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8);
333 if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8))
336 if (bpdu->port_id <= p->designated_port)
358 isroot ? "propagating" : "sending tcn bpdu");
500 const struct br_config_bpdu *bpdu)
510 if (br_supersedes_port_info(p, bpdu)) {
511 br_record_config_information(p, bpdu);
527 br_record_config_timeout_values(br, bpdu);
529 if (bpdu->topology_change_ack)
543 br_info(p->br, "port %u(%s) received tcn bpdu\n",