Searched refs:hardif_neigh (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/net/batman-adv/ |
D | originator.c | 243 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_release() local 245 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release() 248 spin_lock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release() 249 hlist_del_init_rcu(&hardif_neigh->list); in batadv_hardif_neigh_release() 250 spin_unlock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release() 252 batadv_hardif_put(hardif_neigh->if_incoming); in batadv_hardif_neigh_release() 253 kfree_rcu(hardif_neigh, rcu); in batadv_hardif_neigh_release() 274 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release() 519 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_create() local 524 hardif_neigh = batadv_hardif_neigh_get(hard_iface, neigh_addr); in batadv_hardif_neigh_create() [all …]
|
D | bat_v_elp.c | 251 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 …]
|
D | bat_v.c | 113 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 …]
|
D | originator.h | 119 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()
|
D | send.c | 143 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()
|
D | bat_v_ogm.c | 858 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()
|
D | bat_iv_ogm.c | 1313 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 …]
|
D | hard-interface.c | 406 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_no_broadcast() local 423 hardif_neigh = hlist_entry(first, struct batadv_hardif_neigh_node, in batadv_hardif_no_broadcast() 427 if (orig_addr && batadv_compare_eth(hardif_neigh->orig, orig_addr)) { in batadv_hardif_no_broadcast() 431 batadv_compare_eth(hardif_neigh->orig, orig_neigh)) { in batadv_hardif_no_broadcast()
|
D | types.h | 663 struct batadv_hardif_neigh_node *hardif_neigh; member
|