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()
106 struct tb_port *out_port; in tb_path_discover() local
144 out_port = &sw->ports[hop.out_port]; in tb_path_discover()
146 *last = out_port; in tb_path_discover()
149 p = out_port->remote; in tb_path_discover()
189 out_port = &sw->ports[hop.out_port]; in tb_path_discover()
193 tb_port_alloc_out_hopid(out_port, next_hop, next_hop) < 0) { in tb_path_discover()
201 path->hops[i].out_port = out_port; in tb_path_discover()
207 p = out_port->remote; in tb_path_discover()
242 struct tb_port *in_port, *out_port, *first_port, *last_port; in tb_path_alloc() local
279 out_port = NULL; in tb_path_alloc()
282 in_port = tb_next_port_on_path(src, dst, out_port); in tb_path_alloc()
296 out_port = tb_next_port_on_path(src, dst, in_port); in tb_path_alloc()
297 if (!out_port) in tb_path_alloc()
304 if (out_port->dual_link_port) { in tb_path_alloc()
305 if (!in_port->bonded && out_port->bonded && in tb_path_alloc()
306 out_port->link_nr) { in tb_path_alloc()
311 out_port = out_port->dual_link_port; in tb_path_alloc()
312 } else if (!out_port->bonded && in tb_path_alloc()
313 out_port->link_nr != link_nr) { in tb_path_alloc()
318 out_port = out_port->dual_link_port; in tb_path_alloc()
323 ret = tb_port_alloc_out_hopid(out_port, dst_hopid, in tb_path_alloc()
326 ret = tb_port_alloc_out_hopid(out_port, -1, -1); in tb_path_alloc()
335 path->hops[i].out_port = out_port; in tb_path_alloc()
369 if (hop->out_port) in tb_path_free()
370 tb_port_release_out_hopid(hop->out_port, in tb_path_free()
487 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate()
488 path->hops[path->path_length - 1].out_port->port); in tb_path_deactivate()
516 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
517 path->hops[path->path_length - 1].out_port->port); in tb_path_activate()
549 hop.out_port = path->hops[i].out_port->port; in tb_path_activate()
602 if (path->hops[i].out_port->sw->is_unplugged) in tb_path_is_invalid()
622 path->hops[i].out_port == port) in tb_path_port_on_path()