Lines Matching refs:bpdu
16 /* since time values in bpdu are in jiffies and then scaled (1/256)
212 struct br_config_bpdu bpdu;
222 bpdu.topology_change = br->topology_change;
223 bpdu.topology_change_ack = p->topology_change_ack;
224 bpdu.root = br->designated_root;
225 bpdu.root_path_cost = br->root_path_cost;
226 bpdu.bridge_id = br->bridge_id;
227 bpdu.port_id = p->port_id;
229 bpdu.message_age = 0;
233 bpdu.message_age = (jiffies - root->designated_age)
236 bpdu.max_age = br->max_age;
237 bpdu.hello_time = br->hello_time;
238 bpdu.forward_delay = br->forward_delay;
240 if (bpdu.message_age < br->max_age) {
241 br_send_config_bpdu(p, &bpdu);
252 const struct br_config_bpdu *bpdu)
254 p->designated_root = bpdu->root;
255 p->designated_cost = bpdu->root_path_cost;
256 p->designated_bridge = bpdu->bridge_id;
257 p->designated_port = bpdu->port_id;
258 p->designated_age = jiffies - bpdu->message_age;
261 + (bpdu->max_age - bpdu->message_age));
266 const struct br_config_bpdu *bpdu)
268 br->max_age = bpdu->max_age;
269 br->hello_time = bpdu->hello_time;
270 br->forward_delay = bpdu->forward_delay;
271 __br_set_topology_change(br, bpdu->topology_change);
332 const struct br_config_bpdu *bpdu)
336 t = memcmp(&bpdu->root, &p->designated_root, 8);
342 if (bpdu->root_path_cost < p->designated_cost)
344 else if (bpdu->root_path_cost > p->designated_cost)
347 t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8);
353 if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8))
356 if (bpdu->port_id <= p->designated_port)
378 isroot ? "propagating" : "sending tcn bpdu");
520 const struct br_config_bpdu *bpdu)
530 if (br_supersedes_port_info(p, bpdu)) {
531 br_record_config_information(p, bpdu);
547 br_record_config_timeout_values(br, bpdu);
549 if (bpdu->topology_change_ack)
563 br_info(p->br, "port %u(%s) received tcn bpdu\n",