Searched refs:hardif_neigh (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/net/batman-adv/ |
D | originator.c | 244 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_release() local 246 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release() 249 spin_lock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release() 250 hlist_del_init_rcu(&hardif_neigh->list); in batadv_hardif_neigh_release() 251 spin_unlock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release() 253 batadv_hardif_put(hardif_neigh->if_incoming); in batadv_hardif_neigh_release() 254 kfree_rcu(hardif_neigh, rcu); in batadv_hardif_neigh_release() 275 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release() 520 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_create() local 525 hardif_neigh = batadv_hardif_neigh_get(hard_iface, neigh_addr); in batadv_hardif_neigh_create() [all …]
|
D | bat_v_elp.c | 252 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_periodic_work() local 307 hlist_for_each_entry_rcu(hardif_neigh, &hard_iface->neigh_list, list) { in batadv_v_elp_periodic_work() 308 if (!batadv_v_elp_wifi_neigh_probe(hardif_neigh)) in batadv_v_elp_periodic_work() 314 if (!kref_get_unless_zero(&hardif_neigh->refcount)) in batadv_v_elp_periodic_work() 322 &hardif_neigh->bat_v.metric_work); in batadv_v_elp_periodic_work() 325 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_elp_periodic_work() 456 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_neigh_update() local 469 hardif_neigh = batadv_hardif_neigh_get(if_incoming, neigh_addr); in batadv_v_elp_neigh_update() 470 if (!hardif_neigh) in batadv_v_elp_neigh_update() 473 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno; in batadv_v_elp_neigh_update() [all …]
|
D | bat_v.c | 115 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 …]
|
D | originator.h | 123 batadv_hardif_neigh_put(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_hardif_neigh_put() argument 125 if (!hardif_neigh) in batadv_hardif_neigh_put() 128 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
|
D | bat_iv_ogm.c | 1322 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_iv_ogm_process_per_outif() local 1368 hardif_neigh = batadv_hardif_neigh_get(if_incoming, in batadv_iv_ogm_process_per_outif() 1370 if (hardif_neigh) in batadv_iv_ogm_process_per_outif() 1371 hardif_neigh->last_seen = jiffies; in batadv_iv_ogm_process_per_outif() 1508 if (hardif_neigh) in batadv_iv_ogm_process_per_outif() 1509 batadv_hardif_neigh_put(hardif_neigh); in batadv_iv_ogm_process_per_outif() 2122 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_iv_hardif_neigh_print() argument 2126 last_secs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) / 1000; in batadv_iv_hardif_neigh_print() 2127 last_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) % 1000; in batadv_iv_hardif_neigh_print() 2130 hardif_neigh->if_incoming->net_dev->name, in batadv_iv_hardif_neigh_print() [all …]
|
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 if (hardif_neigh) in batadv_send_unicast_skb() 156 batadv_hardif_neigh_put(hardif_neigh); in batadv_send_unicast_skb()
|
D | bat_v_ogm.c | 866 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_v_ogm_process() local 901 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process() 902 if (!hardif_neigh) { in batadv_v_ogm_process() 924 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process() 945 hardif_neigh->orig); in batadv_v_ogm_process() 984 if (hardif_neigh) in batadv_v_ogm_process() 985 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_ogm_process()
|
D | hard-interface.c | 405 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_no_broadcast() local 422 hardif_neigh = hlist_entry(first, struct batadv_hardif_neigh_node, in batadv_hardif_no_broadcast() 426 if (orig_addr && batadv_compare_eth(hardif_neigh->orig, orig_addr)) { in batadv_hardif_no_broadcast() 430 batadv_compare_eth(hardif_neigh->orig, orig_neigh)) { in batadv_hardif_no_broadcast()
|
D | types.h | 673 struct batadv_hardif_neigh_node *hardif_neigh; member
|