Home
last modified time | relevance | path

Searched refs:hardif_neigh (Results 1 – 9 of 9) sorted by relevance

/net/batman-adv/
Doriginator.c264 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_release() local
266 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release()
269 spin_lock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release()
270 hlist_del_init_rcu(&hardif_neigh->list); in batadv_hardif_neigh_release()
271 spin_unlock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release()
273 batadv_hardif_put(hardif_neigh->if_incoming); in batadv_hardif_neigh_release()
274 kfree_rcu(hardif_neigh, rcu); in batadv_hardif_neigh_release()
282 void batadv_hardif_neigh_put(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_hardif_neigh_put() argument
284 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
305 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release()
[all …]
Dbat_v_elp.c257 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_periodic_work() local
312 hlist_for_each_entry_rcu(hardif_neigh, &hard_iface->neigh_list, list) { in batadv_v_elp_periodic_work()
313 if (!batadv_v_elp_wifi_neigh_probe(hardif_neigh)) in batadv_v_elp_periodic_work()
319 if (!kref_get_unless_zero(&hardif_neigh->refcount)) in batadv_v_elp_periodic_work()
327 &hardif_neigh->bat_v.metric_work); in batadv_v_elp_periodic_work()
330 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_elp_periodic_work()
461 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_neigh_update() local
474 hardif_neigh = batadv_hardif_neigh_get(if_incoming, neigh_addr); in batadv_v_elp_neigh_update()
475 if (!hardif_neigh) in batadv_v_elp_neigh_update()
478 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno; in batadv_v_elp_neigh_update()
[all …]
Dbat_v.c115 batadv_v_hardif_neigh_init(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_v_hardif_neigh_init() argument
117 ewma_throughput_init(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_init()
118 INIT_WORK(&hardif_neigh->bat_v.metric_work, in batadv_v_hardif_neigh_init()
160 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_v_hardif_neigh_print() argument
165 last_secs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) / 1000; in batadv_v_hardif_neigh_print()
166 last_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) % 1000; in batadv_v_hardif_neigh_print()
167 throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_print()
170 hardif_neigh->addr, last_secs, last_msecs, throughput / 10, in batadv_v_hardif_neigh_print()
171 throughput % 10, hardif_neigh->if_incoming->net_dev->name); in batadv_v_hardif_neigh_print()
183 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_neigh_print() local
[all …]
Dbat_iv_ogm.c1314 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_iv_ogm_process_per_outif() local
1360 hardif_neigh = batadv_hardif_neigh_get(if_incoming, in batadv_iv_ogm_process_per_outif()
1362 if (hardif_neigh) in batadv_iv_ogm_process_per_outif()
1363 hardif_neigh->last_seen = jiffies; in batadv_iv_ogm_process_per_outif()
1500 if (hardif_neigh) in batadv_iv_ogm_process_per_outif()
1501 batadv_hardif_neigh_put(hardif_neigh); in batadv_iv_ogm_process_per_outif()
2114 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_iv_hardif_neigh_print() argument
2118 last_secs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) / 1000; in batadv_iv_hardif_neigh_print()
2119 last_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) % 1000; in batadv_iv_hardif_neigh_print()
2122 hardif_neigh->if_incoming->net_dev->name, in batadv_iv_hardif_neigh_print()
[all …]
Dsend.c143 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_send_unicast_skb() local
150 hardif_neigh = batadv_hardif_neigh_get(neigh->if_incoming, neigh->addr); in batadv_send_unicast_skb()
152 if (hardif_neigh && ret != NET_XMIT_DROP) in batadv_send_unicast_skb()
153 hardif_neigh->bat_v.last_unicast_tx = jiffies; in batadv_send_unicast_skb()
155 if (hardif_neigh) in batadv_send_unicast_skb()
156 batadv_hardif_neigh_put(hardif_neigh); in batadv_send_unicast_skb()
Dbat_v_ogm.c862 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_v_ogm_process() local
891 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process()
892 if (!hardif_neigh) { in batadv_v_ogm_process()
914 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process()
935 hardif_neigh->orig); in batadv_v_ogm_process()
974 if (hardif_neigh) in batadv_v_ogm_process()
975 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_ogm_process()
Dhard-interface.c394 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_no_broadcast() local
411 hardif_neigh = hlist_entry(first, struct batadv_hardif_neigh_node, in batadv_hardif_no_broadcast()
415 if (orig_addr && batadv_compare_eth(hardif_neigh->orig, orig_addr)) { in batadv_hardif_no_broadcast()
419 batadv_compare_eth(hardif_neigh->orig, orig_neigh)) { in batadv_hardif_no_broadcast()
Doriginator.h31 batadv_hardif_neigh_put(struct batadv_hardif_neigh_node *hardif_neigh);
Dtypes.h670 struct batadv_hardif_neigh_node *hardif_neigh; member