Lines Matching refs:gate
129 struct mpath_node *gate; in mesh_table_free() local
143 hlist_for_each_entry_safe(gate, q, in mesh_table_free()
145 hlist_del(&gate->list); in mesh_table_free()
146 kfree(gate); in mesh_table_free()
447 struct mpath_node *gate, *new_gate; in mesh_path_add_gate() local
453 hlist_for_each_entry_rcu(gate, tbl->known_gates, list) in mesh_path_add_gate()
454 if (gate->mpath == mpath) { in mesh_path_add_gate()
489 struct mpath_node *gate; in mesh_gate_del() local
492 hlist_for_each_entry_safe(gate, q, tbl->known_gates, list) { in mesh_gate_del()
493 if (gate->mpath != mpath) in mesh_gate_del()
496 hlist_del_rcu(&gate->list); in mesh_gate_del()
497 kfree_rcu(gate, rcu); in mesh_gate_del()
948 struct mpath_node *gate = NULL; in mesh_path_send_to_gates() local
960 hlist_for_each_entry_rcu(gate, known_gates, list) { in mesh_path_send_to_gates()
961 if (gate->mpath->sdata != sdata) in mesh_path_send_to_gates()
964 if (gate->mpath->flags & MESH_PATH_ACTIVE) { in mesh_path_send_to_gates()
965 mpath_dbg(sdata, "Forwarding to %pM\n", gate->mpath->dst); in mesh_path_send_to_gates()
966 mesh_path_move_to_queue(gate->mpath, from_mpath, copy); in mesh_path_send_to_gates()
967 from_mpath = gate->mpath; in mesh_path_send_to_gates()
972 gate->mpath, gate->mpath->flags); in mesh_path_send_to_gates()
976 hlist_for_each_entry_rcu(gate, known_gates, list) in mesh_path_send_to_gates()
977 if (gate->mpath->sdata == sdata) { in mesh_path_send_to_gates()
978 mpath_dbg(sdata, "Sending to %pM\n", gate->mpath->dst); in mesh_path_send_to_gates()
979 mesh_path_tx_pending(gate->mpath); in mesh_path_send_to_gates()