Home
last modified time | relevance | path

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

/Linux-v4.19/net/batman-adv/
Dbat_v_ogm.c337 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_v_ogm_forward() local
372 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_forward()
373 if (!neigh_ifinfo) in batadv_v_ogm_forward()
389 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput); in batadv_v_ogm_forward()
404 if (neigh_ifinfo) in batadv_v_ogm_forward()
405 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_v_ogm_forward()
430 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_v_ogm_metric_update() local
469 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_v_ogm_metric_update()
470 if (!neigh_ifinfo) in batadv_v_ogm_metric_update()
476 neigh_ifinfo->bat_v.throughput = path_throughput; in batadv_v_ogm_metric_update()
[all …]
Doriginator.c248 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_ifinfo_release() local
250 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
252 if (neigh_ifinfo->if_outgoing != BATADV_IF_DEFAULT) in batadv_neigh_ifinfo_release()
253 batadv_hardif_put(neigh_ifinfo->if_outgoing); in batadv_neigh_ifinfo_release()
255 kfree_rcu(neigh_ifinfo, rcu); in batadv_neigh_ifinfo_release()
263 void batadv_neigh_ifinfo_put(struct batadv_neigh_ifinfo *neigh_ifinfo) in batadv_neigh_ifinfo_put() argument
265 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()
307 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_node_release() local
311 hlist_for_each_entry_safe(neigh_ifinfo, node_tmp, in batadv_neigh_node_release()
313 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_neigh_node_release()
[all …]
Dbat_iv_ogm.c1024 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update() local
1056 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()
1058 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
1062 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1063 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
1064 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1065 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1068 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1069 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()
1092 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
[all …]
Doriginator.h59 void batadv_neigh_ifinfo_put(struct batadv_neigh_ifinfo *neigh_ifinfo);