/Linux-v6.1/net/batman-adv/ |
D | originator.c | 61 struct batadv_orig_node *orig_node, *orig_node_tmp = NULL; in batadv_orig_hash_find() local 71 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { in batadv_orig_hash_find() 72 if (!batadv_compare_eth(orig_node, data)) in batadv_orig_hash_find() 75 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find() 78 orig_node_tmp = orig_node; in batadv_orig_hash_find() 112 batadv_orig_node_vlan_get(struct batadv_orig_node *orig_node, in batadv_orig_node_vlan_get() argument 118 hlist_for_each_entry_rcu(tmp, &orig_node->vlan_list, list) { in batadv_orig_node_vlan_get() 147 batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node, in batadv_orig_node_vlan_new() argument 152 spin_lock_bh(&orig_node->vlan_list_lock); in batadv_orig_node_vlan_new() 155 vlan = batadv_orig_node_vlan_get(orig_node, vid); in batadv_orig_node_vlan_new() [all …]
|
D | routing.c | 54 struct batadv_orig_node *orig_node, in _batadv_update_route() argument 61 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, recv_if); in _batadv_update_route() 65 spin_lock_bh(&orig_node->neigh_list_lock); in _batadv_update_route() 80 spin_unlock_bh(&orig_node->neigh_list_lock); in _batadv_update_route() 86 "Deleting route towards: %pM\n", orig_node->orig); in _batadv_update_route() 87 batadv_tt_global_del_orig(bat_priv, orig_node, -1, in _batadv_update_route() 94 orig_node->orig, neigh_node->addr); in _batadv_update_route() 99 orig_node->orig, neigh_node->addr, in _batadv_update_route() 115 struct batadv_orig_node *orig_node, in batadv_update_route() argument 121 if (!orig_node) in batadv_update_route() [all …]
|
D | gateway_client.c | 69 batadv_orig_node_put(gw_node->orig_node); in batadv_gw_node_release() 107 struct batadv_orig_node *orig_node = NULL; in batadv_gw_get_selected_orig() local 114 orig_node = gw_node->orig_node; in batadv_gw_get_selected_orig() 115 if (!orig_node) in batadv_gw_get_selected_orig() 118 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig() 119 orig_node = NULL; in batadv_gw_get_selected_orig() 125 return orig_node; in batadv_gw_get_selected_orig() 227 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election() 229 router = batadv_orig_router_get(next_gw->orig_node, in batadv_gw_election() 252 next_gw->orig_node->orig, in batadv_gw_election() [all …]
|
D | translation-table.c | 67 struct batadv_orig_node *orig_node); 72 struct batadv_orig_node *orig_node, 365 static void batadv_tt_global_size_mod(struct batadv_orig_node *orig_node, in batadv_tt_global_size_mod() argument 370 vlan = batadv_orig_node_vlan_new(orig_node, vid); in batadv_tt_global_size_mod() 375 spin_lock_bh(&orig_node->vlan_list_lock); in batadv_tt_global_size_mod() 380 spin_unlock_bh(&orig_node->vlan_list_lock); in batadv_tt_global_size_mod() 392 static void batadv_tt_global_size_inc(struct batadv_orig_node *orig_node, in batadv_tt_global_size_inc() argument 395 batadv_tt_global_size_mod(orig_node, vid, 1); in batadv_tt_global_size_inc() 404 static void batadv_tt_global_size_dec(struct batadv_orig_node *orig_node, in batadv_tt_global_size_dec() argument 407 batadv_tt_global_size_mod(orig_node, vid, -1); in batadv_tt_global_size_dec() [all …]
|
D | bat_iv_ogm.c | 142 struct batadv_orig_node *orig_node; in batadv_iv_ogm_orig_get() local 145 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_iv_ogm_orig_get() 146 if (orig_node) in batadv_iv_ogm_orig_get() 147 return orig_node; in batadv_iv_ogm_orig_get() 149 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_iv_ogm_orig_get() 150 if (!orig_node) in batadv_iv_ogm_orig_get() 153 spin_lock_init(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_orig_get() 155 kref_get(&orig_node->refcount); in batadv_iv_ogm_orig_get() 157 batadv_choose_orig, orig_node, in batadv_iv_ogm_orig_get() 158 &orig_node->hash_entry); in batadv_iv_ogm_orig_get() [all …]
|
D | bat_v_ogm.c | 59 struct batadv_orig_node *orig_node; in batadv_v_ogm_orig_get() local 62 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_v_ogm_orig_get() 63 if (orig_node) in batadv_v_ogm_orig_get() 64 return orig_node; in batadv_v_ogm_orig_get() 66 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_v_ogm_orig_get() 67 if (!orig_node) in batadv_v_ogm_orig_get() 70 kref_get(&orig_node->refcount); in batadv_v_ogm_orig_get() 72 batadv_choose_orig, orig_node, in batadv_v_ogm_orig_get() 73 &orig_node->hash_entry); in batadv_v_ogm_orig_get() 76 batadv_orig_node_put(orig_node); in batadv_v_ogm_orig_get() [all …]
|
D | originator.h | 32 batadv_neigh_node_get_or_create(struct batadv_orig_node *orig_node, 37 batadv_orig_router_get(struct batadv_orig_node *orig_node, 50 batadv_orig_ifinfo_get(struct batadv_orig_node *orig_node, 53 batadv_orig_ifinfo_new(struct batadv_orig_node *orig_node, 59 batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node, 62 batadv_orig_node_vlan_get(struct batadv_orig_node *orig_node, 159 static inline void batadv_orig_node_put(struct batadv_orig_node *orig_node) in batadv_orig_node_put() argument 161 if (!orig_node) in batadv_orig_node_put() 164 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
|
D | network-coding.h | 24 struct batadv_orig_node *orig_node, 29 struct batadv_orig_node *orig_node, 33 void batadv_nc_init_orig(struct batadv_orig_node *orig_node); 63 struct batadv_orig_node *orig_node, in batadv_nc_update_nc_node() argument 72 struct batadv_orig_node *orig_node, in batadv_nc_purge_orig() argument 82 static inline void batadv_nc_init_orig(struct batadv_orig_node *orig_node) in batadv_nc_init_orig() argument
|
D | send.c | 177 struct batadv_orig_node *orig_node, in batadv_send_skb_to_orig() argument 180 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() 185 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig() 197 ret = batadv_frag_send_packet(skb, orig_node, neigh_node); in batadv_send_skb_to_orig() 235 struct batadv_orig_node *orig_node) in batadv_send_skb_push_fill_unicast() argument 238 u8 ttvn = (u8)atomic_read(&orig_node->last_ttvn); in batadv_send_skb_push_fill_unicast() 250 ether_addr_copy(unicast_packet->dest, orig_node->orig); in batadv_send_skb_push_fill_unicast() 265 struct batadv_orig_node *orig_node) in batadv_send_skb_prepare_unicast() argument 269 return batadv_send_skb_push_fill_unicast(skb, uni_size, orig_node); in batadv_send_skb_prepare_unicast() 334 struct batadv_orig_node *orig_node, in batadv_send_skb_unicast() argument [all …]
|
D | network-coding.c | 188 void batadv_nc_init_orig(struct batadv_orig_node *orig_node) in batadv_nc_init_orig() argument 190 INIT_LIST_HEAD(&orig_node->in_coding_list); in batadv_nc_init_orig() 191 INIT_LIST_HEAD(&orig_node->out_coding_list); in batadv_nc_init_orig() 192 spin_lock_init(&orig_node->in_coding_list_lock); in batadv_nc_init_orig() 193 spin_lock_init(&orig_node->out_coding_list_lock); in batadv_nc_init_orig() 207 batadv_orig_node_put(nc_node->orig_node); in batadv_nc_node_release() 356 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_purge_orig_nc_nodes() 374 struct batadv_orig_node *orig_node, in batadv_nc_purge_orig() argument 379 batadv_nc_purge_orig_nc_nodes(bat_priv, &orig_node->in_coding_list, in batadv_nc_purge_orig() 380 &orig_node->in_coding_list_lock, in batadv_nc_purge_orig() [all …]
|
D | multicast.c | 1165 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_ipv4_node_get() local 1174 orig_node = tmp_orig_node; in batadv_mcast_forw_ipv4_node_get() 1179 return orig_node; in batadv_mcast_forw_ipv4_node_get() 1192 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_ipv6_node_get() local 1201 orig_node = tmp_orig_node; in batadv_mcast_forw_ipv6_node_get() 1206 return orig_node; in batadv_mcast_forw_ipv6_node_get() 1243 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_unsnoop_node_get() local 1252 orig_node = tmp_orig_node; in batadv_mcast_forw_unsnoop_node_get() 1257 return orig_node; in batadv_mcast_forw_unsnoop_node_get() 1270 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_rtr4_node_get() local [all …]
|
D | bat_v.c | 271 struct batadv_orig_node *orig_node, in batadv_v_orig_dump_subentry() argument 288 last_seen_msecs = jiffies_to_msecs(jiffies - orig_node->last_seen); in batadv_v_orig_dump_subentry() 299 if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, orig_node->orig) || in batadv_v_orig_dump_subentry() 340 struct batadv_orig_node *orig_node, int *sub_s) in batadv_v_orig_dump_entry() argument 347 neigh_node_best = batadv_orig_router_get(orig_node, if_outgoing); in batadv_v_orig_dump_entry() 351 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_v_orig_dump_entry() 358 if_outgoing, orig_node, in batadv_v_orig_dump_entry() 393 struct batadv_orig_node *orig_node; in batadv_v_orig_dump_bucket() local 397 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { in batadv_v_orig_dump_bucket() 402 if_outgoing, orig_node, sub)) { in batadv_v_orig_dump_bucket() [all …]
|
D | tvlv.c | 368 struct batadv_orig_node *orig_node, in batadv_tvlv_call_handler() argument 379 if (!orig_node) in batadv_tvlv_call_handler() 382 tvlv_handler->ogm_handler(bat_priv, orig_node, in batadv_tvlv_call_handler() 420 struct batadv_orig_node *orig_node, in batadv_tvlv_containers_process() argument 444 ogm_source, orig_node, in batadv_tvlv_containers_process() 460 tvlv_handler->ogm_handler(bat_priv, orig_node, in batadv_tvlv_containers_process() 479 struct batadv_orig_node *orig_node) in batadv_tvlv_ogm_receive() argument 493 batadv_tvlv_containers_process(bat_priv, true, orig_node, NULL, NULL, in batadv_tvlv_ogm_receive() 596 struct batadv_orig_node *orig_node; in batadv_tvlv_unicast_send() local 602 orig_node = batadv_orig_hash_find(bat_priv, dst); in batadv_tvlv_unicast_send() [all …]
|
D | gateway_client.h | 24 struct batadv_orig_node *orig_node); 26 struct batadv_orig_node *orig_node, 29 struct batadv_orig_node *orig_node); 40 struct batadv_orig_node *orig_node);
|
D | multicast.h | 52 struct batadv_orig_node *orig_node); 66 void batadv_mcast_purge_orig(struct batadv_orig_node *orig_node); 82 struct batadv_orig_node *orig_node) in batadv_mcast_forw_send_orig() argument 117 static inline void batadv_mcast_purge_orig(struct batadv_orig_node *orig_node) in batadv_mcast_purge_orig() argument
|
D | tp_meter.c | 578 struct batadv_orig_node *orig_node, in batadv_tp_send_msg() argument 596 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_msg() 613 r = batadv_send_skb_to_orig(skb, orig_node, NULL); in batadv_tp_send_msg() 631 struct batadv_orig_node *orig_node = NULL; in batadv_tp_recv_ack() local 662 orig_node = batadv_orig_hash_find(bat_priv, icmp->orig); in batadv_tp_recv_ack() 663 if (unlikely(!orig_node)) in batadv_tp_recv_ack() 687 orig_node, recv_ack, packet_len, in batadv_tp_recv_ack() 726 orig_node, recv_ack, in batadv_tp_recv_ack() 755 batadv_orig_node_put(orig_node); in batadv_tp_recv_ack() 810 struct batadv_orig_node *orig_node = NULL; in batadv_tp_send() local [all …]
|
D | distributed-arp-table.h | 49 batadv_dat_init_orig_node_addr(struct batadv_orig_node *orig_node) in batadv_dat_init_orig_node_addr() argument 53 addr = batadv_choose_orig(orig_node->orig, BATADV_DAT_ADDR_MAX); in batadv_dat_init_orig_node_addr() 54 orig_node->dat_addr = (batadv_dat_addr_t)addr; in batadv_dat_init_orig_node_addr() 155 batadv_dat_init_orig_node_addr(struct batadv_orig_node *orig_node) in batadv_dat_init_orig_node_addr() argument
|
D | send.h | 33 struct batadv_orig_node *orig_node, 55 struct batadv_orig_node *orig_node, 60 struct batadv_orig_node *orig_node,
|
D | fragmentation.c | 60 void batadv_frag_purge_orig(struct batadv_orig_node *orig_node, in batadv_frag_purge_orig() argument 67 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig() 137 static bool batadv_frag_insert_packet(struct batadv_orig_node *orig_node, in batadv_frag_insert_packet() argument 171 chain = &orig_node->fragments[bucket]; in batadv_frag_insert_packet() 440 struct batadv_orig_node *orig_node, in batadv_frag_send_packet() argument 471 bat_priv = orig_node->bat_priv; in batadv_frag_send_packet() 509 ether_addr_copy(frag_header.dest, orig_node->orig); in batadv_frag_send_packet()
|
D | fragmentation.h | 24 struct batadv_orig_node *orig_node); 26 struct batadv_orig_node *orig_node,
|
D | routing.h | 19 struct batadv_orig_node *orig_node, 40 struct batadv_orig_node *orig_node,
|
D | tvlv.h | 23 struct batadv_orig_node *orig_node); 42 struct batadv_orig_node *orig_node,
|
D | translation-table.h | 27 struct batadv_orig_node *orig_node, 50 struct batadv_orig_node *orig_node,
|
D | bridge_loop_avoidance.h | 41 struct batadv_orig_node *orig_node, 76 struct batadv_orig_node *orig_node, in batadv_bla_is_backbone_gw() argument
|
D | distributed-arp-table.c | 527 if (res[j].orig_node == candidate) in batadv_is_orig_node_eligible() 567 struct batadv_orig_node *orig_node, *max_orig_node = NULL; in batadv_choose_next_candidate() local 584 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { in batadv_choose_next_candidate() 586 tmp_max = BATADV_DAT_ADDR_MAX - orig_node->dat_addr + in batadv_choose_next_candidate() 591 *last_max, orig_node, in batadv_choose_next_candidate() 595 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_choose_next_candidate() 600 max_orig_node = orig_node; in batadv_choose_next_candidate() 606 cands[select].orig_node = max_orig_node; in batadv_choose_next_candidate() 696 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data() 703 cand[i].orig_node, in batadv_dat_forward_data() [all …]
|