Lines Matching refs:neigh_node
467 struct neigh_node *router; in bat_iv_ogm_forward()
582 struct neigh_node *neigh_node = NULL, *tmp_neigh_node = NULL; in bat_iv_ogm_orig_update() local
583 struct neigh_node *router = NULL; in bat_iv_ogm_orig_update()
597 if (neigh_node) in bat_iv_ogm_orig_update()
598 neigh_node_free_ref(neigh_node); in bat_iv_ogm_orig_update()
599 neigh_node = tmp_neigh_node; in bat_iv_ogm_orig_update()
614 if (!neigh_node) { in bat_iv_ogm_orig_update()
621 neigh_node = create_neighbor(orig_node, orig_tmp, in bat_iv_ogm_orig_update()
625 if (!neigh_node) in bat_iv_ogm_orig_update()
634 neigh_node->last_valid = jiffies; in bat_iv_ogm_orig_update()
636 spin_lock_bh(&neigh_node->tq_lock); in bat_iv_ogm_orig_update()
637 ring_buffer_set(neigh_node->tq_recv, in bat_iv_ogm_orig_update()
638 &neigh_node->tq_index, in bat_iv_ogm_orig_update()
640 neigh_node->tq_avg = ring_buffer_avg(neigh_node->tq_recv); in bat_iv_ogm_orig_update()
641 spin_unlock_bh(&neigh_node->tq_lock); in bat_iv_ogm_orig_update()
645 neigh_node->last_ttl = batman_ogm_packet->header.ttl; in bat_iv_ogm_orig_update()
648 bonding_candidate_add(orig_node, neigh_node); in bat_iv_ogm_orig_update()
653 if (router == neigh_node) in bat_iv_ogm_orig_update()
657 if (router && (router->tq_avg > neigh_node->tq_avg)) in bat_iv_ogm_orig_update()
662 if (router && (neigh_node->tq_avg == router->tq_avg)) { in bat_iv_ogm_orig_update()
669 orig_node_tmp = neigh_node->orig_node; in bat_iv_ogm_orig_update()
679 update_route(bat_priv, orig_node, neigh_node); in bat_iv_ogm_orig_update()
709 if (neigh_node) in bat_iv_ogm_orig_update()
710 neigh_node_free_ref(neigh_node); in bat_iv_ogm_orig_update()
721 struct neigh_node *neigh_node = NULL, *tmp_neigh_node; in bat_iv_ogm_calc_tq() local
741 neigh_node = tmp_neigh_node; in bat_iv_ogm_calc_tq()
746 if (!neigh_node) in bat_iv_ogm_calc_tq()
747 neigh_node = create_neighbor(orig_neigh_node, in bat_iv_ogm_calc_tq()
752 if (!neigh_node) in bat_iv_ogm_calc_tq()
757 neigh_node->last_valid = jiffies; in bat_iv_ogm_calc_tq()
764 neigh_rq_count = neigh_node->real_packet_count; in bat_iv_ogm_calc_tq()
810 if (neigh_node) in bat_iv_ogm_calc_tq()
811 neigh_node_free_ref(neigh_node); in bat_iv_ogm_calc_tq()
830 struct neigh_node *tmp_neigh_node; in bat_iv_ogm_update_seqnos()
896 struct neigh_node *router = NULL, *router_router = NULL; in bat_iv_ogm_process()
897 struct neigh_node *orig_neigh_router = NULL; in bat_iv_ogm_process()