Home
last modified time | relevance | path

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

/net/batman-adv/
Dbat_v_ogm.c311 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_v_ogm_forward() local
346 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_forward()
347 if (!neigh_ifinfo) in batadv_v_ogm_forward()
364 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput); in batadv_v_ogm_forward()
379 if (neigh_ifinfo) in batadv_v_ogm_forward()
380 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_v_ogm_forward()
405 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_v_ogm_metric_update() local
444 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_v_ogm_metric_update()
445 if (!neigh_ifinfo) in batadv_v_ogm_metric_update()
451 neigh_ifinfo->bat_v.throughput = path_throughput; in batadv_v_ogm_metric_update()
[all …]
Doriginator.c202 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_ifinfo_release() local
204 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
206 if (neigh_ifinfo->if_outgoing != BATADV_IF_DEFAULT) in batadv_neigh_ifinfo_release()
207 batadv_hardif_put(neigh_ifinfo->if_outgoing); in batadv_neigh_ifinfo_release()
209 kfree_rcu(neigh_ifinfo, rcu); in batadv_neigh_ifinfo_release()
217 void batadv_neigh_ifinfo_put(struct batadv_neigh_ifinfo *neigh_ifinfo) in batadv_neigh_ifinfo_put() argument
219 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()
261 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_node_release() local
265 hlist_for_each_entry_safe(neigh_ifinfo, node_tmp, in batadv_neigh_node_release()
267 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_neigh_node_release()
[all …]
Dbat_iv_ogm.c1019 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update() local
1050 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()
1052 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
1056 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1057 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
1058 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1059 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1062 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1063 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()
1086 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
[all …]
Doriginator.h64 void batadv_neigh_ifinfo_put(struct batadv_neigh_ifinfo *neigh_ifinfo);