Searched refs:hardif_neigh (Results 1 – 9 of 9) sorted by relevance
/net/batman-adv/ |
D | originator.c | 229 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_neigh_release() local 231 hardif_neigh = container_of(ref, struct batadv_hardif_neigh_node, in batadv_hardif_neigh_release() 234 spin_lock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release() 235 hlist_del_init_rcu(&hardif_neigh->list); in batadv_hardif_neigh_release() 236 spin_unlock_bh(&hardif_neigh->if_incoming->neigh_list_lock); in batadv_hardif_neigh_release() 238 batadv_hardif_put(hardif_neigh->if_incoming); in batadv_hardif_neigh_release() 239 kfree_rcu(hardif_neigh, rcu); in batadv_hardif_neigh_release() 247 void batadv_hardif_neigh_put(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_hardif_neigh_put() argument 249 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put() 270 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release() [all …]
|
D | bat_v_elp.c | 250 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_periodic_work() local 305 hlist_for_each_entry_rcu(hardif_neigh, &hard_iface->neigh_list, list) { in batadv_v_elp_periodic_work() 306 if (!batadv_v_elp_wifi_neigh_probe(hardif_neigh)) in batadv_v_elp_periodic_work() 312 if (!kref_get_unless_zero(&hardif_neigh->refcount)) in batadv_v_elp_periodic_work() 320 &hardif_neigh->bat_v.metric_work); in batadv_v_elp_periodic_work() 323 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_elp_periodic_work() 454 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_elp_neigh_update() local 467 hardif_neigh = batadv_hardif_neigh_get(if_incoming, neigh_addr); in batadv_v_elp_neigh_update() 468 if (!hardif_neigh) in batadv_v_elp_neigh_update() 471 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno; in batadv_v_elp_neigh_update() [all …]
|
D | bat_v.c | 124 batadv_v_hardif_neigh_init(struct batadv_hardif_neigh_node *hardif_neigh) in batadv_v_hardif_neigh_init() argument 126 ewma_throughput_init(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_init() 127 INIT_WORK(&hardif_neigh->bat_v.metric_work, in batadv_v_hardif_neigh_init() 169 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_v_hardif_neigh_print() argument 174 last_secs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) / 1000; in batadv_v_hardif_neigh_print() 175 last_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) % 1000; in batadv_v_hardif_neigh_print() 176 throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_print() 179 hardif_neigh->addr, last_secs, last_msecs, throughput / 10, in batadv_v_hardif_neigh_print() 180 throughput % 10, hardif_neigh->if_incoming->net_dev->name); in batadv_v_hardif_neigh_print() 192 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_v_neigh_print() local [all …]
|
D | bat_iv_ogm.c | 1474 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_iv_ogm_process_per_outif() local 1520 hardif_neigh = batadv_hardif_neigh_get(if_incoming, in batadv_iv_ogm_process_per_outif() 1522 if (hardif_neigh) in batadv_iv_ogm_process_per_outif() 1523 hardif_neigh->last_seen = jiffies; in batadv_iv_ogm_process_per_outif() 1660 if (hardif_neigh) in batadv_iv_ogm_process_per_outif() 1661 batadv_hardif_neigh_put(hardif_neigh); in batadv_iv_ogm_process_per_outif() 2255 struct batadv_hardif_neigh_node *hardif_neigh) in batadv_iv_hardif_neigh_print() argument 2259 last_secs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) / 1000; in batadv_iv_hardif_neigh_print() 2260 last_msecs = jiffies_to_msecs(jiffies - hardif_neigh->last_seen) % 1000; in batadv_iv_hardif_neigh_print() 2263 hardif_neigh->if_incoming->net_dev->name, in batadv_iv_hardif_neigh_print() [all …]
|
D | bat_v_ogm.c | 699 struct batadv_hardif_neigh_node *hardif_neigh = NULL; in batadv_v_ogm_process() local 728 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process() 729 if (!hardif_neigh) { in batadv_v_ogm_process() 751 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process() 772 hardif_neigh->orig); in batadv_v_ogm_process() 811 if (hardif_neigh) in batadv_v_ogm_process() 812 batadv_hardif_neigh_put(hardif_neigh); in batadv_v_ogm_process()
|
D | send.c | 136 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_send_unicast_skb() local 143 hardif_neigh = batadv_hardif_neigh_get(neigh->if_incoming, neigh->addr); in batadv_send_unicast_skb() 145 if ((hardif_neigh) && (ret != NET_XMIT_DROP)) in batadv_send_unicast_skb() 146 hardif_neigh->bat_v.last_unicast_tx = jiffies; in batadv_send_unicast_skb() 148 if (hardif_neigh) in batadv_send_unicast_skb() 149 batadv_hardif_neigh_put(hardif_neigh); in batadv_send_unicast_skb()
|
D | hard-interface.c | 398 struct batadv_hardif_neigh_node *hardif_neigh; in batadv_hardif_no_broadcast() local 415 hardif_neigh = hlist_entry(first, struct batadv_hardif_neigh_node, in batadv_hardif_no_broadcast() 419 if (orig_addr && batadv_compare_eth(hardif_neigh->orig, orig_addr)) { in batadv_hardif_no_broadcast() 423 batadv_compare_eth(hardif_neigh->orig, orig_neigh)) { in batadv_hardif_no_broadcast()
|
D | originator.h | 49 batadv_hardif_neigh_put(struct batadv_hardif_neigh_node *hardif_neigh);
|
D | types.h | 472 struct batadv_hardif_neigh_node *hardif_neigh; member
|