Home
last modified time | relevance | path

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

/net/batman-adv/
Doriginator.c270 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_release() local
272 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release()
275 spin_lock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release()
276 hlist_del_init_rcu(&hardif_neigh->list); in batadv_hardif_neigh_release()
277 spin_unlock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release()
279 batadv_hardif_put(hardif_neigh->if_incoming); in batadv_hardif_neigh_release()
280 kfree_rcu(hardif_neigh, rcu); in batadv_hardif_neigh_release()
301 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release()
546 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_create() local
551 hardif_neigh = batadv_hardif_neigh_get(hard_iface, neigh_addr); in batadv_hardif_neigh_create()
[all …]
Dbat_v_elp.c251 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_periodic_work() local
306 hlist_for_each_entry_rcu(hardif_neigh, &hard_iface->neigh_list, list) { in batadv_v_elp_periodic_work()
307 if (!batadv_v_elp_wifi_neigh_probe(hardif_neigh)) in batadv_v_elp_periodic_work()
313 if (!kref_get_unless_zero(&hardif_neigh->refcount)) in batadv_v_elp_periodic_work()
321 &hardif_neigh->bat_v.metric_work); in batadv_v_elp_periodic_work()
324 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_elp_periodic_work()
455 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_neigh_update() local
468 hardif_neigh = batadv_hardif_neigh_get(if_incoming, neigh_addr); in batadv_v_elp_neigh_update()
469 if (!hardif_neigh) in batadv_v_elp_neigh_update()
472 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno; in batadv_v_elp_neigh_update()
[all …]
Dbat_v.c113 batadv_v_hardif_neigh_init(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_v_hardif_neigh_init() argument
115 ewma_throughput_init(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_init()
116 INIT_WORK(&hardif_neigh->bat_v.metric_work, in batadv_v_hardif_neigh_init()
131 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_v_neigh_dump_neigh() argument
137 last_seen_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen); in batadv_v_neigh_dump_neigh()
138 throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_neigh_dump_neigh()
147 hardif_neigh->addr) || in batadv_v_neigh_dump_neigh()
149 hardif_neigh->if_incoming->net_dev->name) || in batadv_v_neigh_dump_neigh()
151 hardif_neigh->if_incoming->net_dev->ifindex) || in batadv_v_neigh_dump_neigh()
185 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_neigh_dump_hardif() local
[all …]
Doriginator.h119 batadv_hardif_neigh_put(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_hardif_neigh_put() argument
121 if (!hardif_neigh) in batadv_hardif_neigh_put()
124 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
Dbat_iv_ogm.c1313 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_iv_ogm_process_per_outif() local
1359 hardif_neigh = batadv_hardif_neigh_get(if_incoming, in batadv_iv_ogm_process_per_outif()
1361 if (hardif_neigh) in batadv_iv_ogm_process_per_outif()
1362 hardif_neigh->last_seen = jiffies; in batadv_iv_ogm_process_per_outif()
1495 batadv_hardif_neigh_put(hardif_neigh); in batadv_iv_ogm_process_per_outif()
2055 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_iv_ogm_neigh_dump_neigh() argument
2060 last_seen_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen); in batadv_iv_ogm_neigh_dump_neigh()
2068 hardif_neigh->addr) || in batadv_iv_ogm_neigh_dump_neigh()
2070 hardif_neigh->if_incoming->net_dev->name) || in batadv_iv_ogm_neigh_dump_neigh()
2072 hardif_neigh->if_incoming->net_dev->ifindex) || in batadv_iv_ogm_neigh_dump_neigh()
[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 batadv_hardif_neigh_put(hardif_neigh); in batadv_send_unicast_skb()
Dbat_v_ogm.c858 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_v_ogm_process() local
893 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process()
894 if (!hardif_neigh) { in batadv_v_ogm_process()
916 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process()
937 hardif_neigh->orig); in batadv_v_ogm_process()
974 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_ogm_process()
Dhard-interface.c404 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_no_broadcast() local
421 hardif_neigh = hlist_entry(first, struct batadv_hardif_neigh_node, in batadv_hardif_no_broadcast()
425 if (orig_addr && batadv_compare_eth(hardif_neigh->orig, orig_addr)) { in batadv_hardif_no_broadcast()
429 batadv_compare_eth(hardif_neigh->orig, orig_neigh)) { in batadv_hardif_no_broadcast()
Dtypes.h663 struct batadv_hardif_neigh_node *hardif_neigh; member