Home
last modified time | relevance | path

Searched refs:neigh_ifinfo (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/net/batman-adv/
Doriginator.c226 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_ifinfo_release() local
228 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
230 if (neigh_ifinfo->if_outgoing != BATADV_IF_DEFAULT) in batadv_neigh_ifinfo_release()
231 batadv_hardif_put(neigh_ifinfo->if_outgoing); in batadv_neigh_ifinfo_release()
233 kfree_rcu(neigh_ifinfo, rcu); in batadv_neigh_ifinfo_release()
265 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_node_release() local
269 hlist_for_each_entry_safe(neigh_ifinfo, node_tmp, in batadv_neigh_node_release()
271 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_neigh_node_release()
405 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL, in batadv_neigh_ifinfo_get() local
417 neigh_ifinfo = tmp_neigh_ifinfo; in batadv_neigh_ifinfo_get()
[all …]
Dbat_v_ogm.c524 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_v_ogm_forward() local
559 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_forward()
560 if (!neigh_ifinfo) in batadv_v_ogm_forward()
576 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput); in batadv_v_ogm_forward()
589 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_v_ogm_forward()
614 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_v_ogm_metric_update() local
653 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_v_ogm_metric_update()
654 if (!neigh_ifinfo) in batadv_v_ogm_metric_update()
660 neigh_ifinfo->bat_v.throughput = path_throughput; in batadv_v_ogm_metric_update()
661 neigh_ifinfo->bat_v.last_seqno = ntohl(ogm2->seqno); in batadv_v_ogm_metric_update()
[all …]
Dbat_iv_ogm.c924 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update() local
954 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()
956 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
960 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
961 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
962 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
963 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
966 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
967 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()
990 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
[all …]
Doriginator.h105 batadv_neigh_ifinfo_put(struct batadv_neigh_ifinfo *neigh_ifinfo) in batadv_neigh_ifinfo_put() argument
107 if (!neigh_ifinfo) in batadv_neigh_ifinfo_put()
110 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()