Lines Matching refs:out_port
21 hop->in_hop_index, regs->out_port, regs->next_hop); in tb_dump_hop()
37 struct tb_port *port, *out_port = NULL; in tb_path_find_dst_port() local
57 out_port = &sw->ports[hop.out_port]; in tb_path_find_dst_port()
59 port = out_port->remote; in tb_path_find_dst_port()
62 return out_port && hopid == dst_hopid ? out_port : NULL; in tb_path_find_dst_port()
104 struct tb_port *out_port; in tb_path_discover() local
142 out_port = &sw->ports[hop.out_port]; in tb_path_discover()
144 *last = out_port; in tb_path_discover()
147 p = out_port->remote; in tb_path_discover()
183 out_port = &sw->ports[hop.out_port]; in tb_path_discover()
186 if (tb_port_alloc_out_hopid(out_port, next_hop, next_hop) < 0) { in tb_path_discover()
194 path->hops[i].out_port = out_port; in tb_path_discover()
198 p = out_port->remote; in tb_path_discover()
232 struct tb_port *in_port, *out_port, *first_port, *last_port; in tb_path_alloc() local
267 out_port = NULL; in tb_path_alloc()
270 in_port = tb_next_port_on_path(src, dst, out_port); in tb_path_alloc()
284 out_port = tb_next_port_on_path(src, dst, in_port); in tb_path_alloc()
285 if (!out_port) in tb_path_alloc()
292 if (out_port->dual_link_port) { in tb_path_alloc()
293 if (!in_port->bonded && out_port->bonded && in tb_path_alloc()
294 out_port->link_nr) { in tb_path_alloc()
299 out_port = out_port->dual_link_port; in tb_path_alloc()
300 } else if (!out_port->bonded && in tb_path_alloc()
301 out_port->link_nr != link_nr) { in tb_path_alloc()
306 out_port = out_port->dual_link_port; in tb_path_alloc()
311 ret = tb_port_alloc_out_hopid(out_port, dst_hopid, in tb_path_alloc()
314 ret = tb_port_alloc_out_hopid(out_port, -1, -1); in tb_path_alloc()
323 path->hops[i].out_port = out_port; in tb_path_alloc()
356 if (hop->out_port) in tb_path_free()
357 tb_port_release_out_hopid(hop->out_port, in tb_path_free()
453 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate()
454 path->hops[path->path_length - 1].out_port->port); in tb_path_deactivate()
481 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
482 path->hops[path->path_length - 1].out_port->port); in tb_path_activate()
514 hop.out_port = path->hops[i].out_port->port; in tb_path_activate()
566 if (path->hops[i].out_port->sw->is_unplugged) in tb_path_is_invalid()
586 path->hops[i].out_port == port) in tb_path_port_on_path()