/kernel/linux/linux-5.10/net/batman-adv/ |
D | originator.c | 62 struct batadv_orig_node *orig_node, *orig_node_tmp = NULL; in batadv_orig_hash_find() local 72 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { in batadv_orig_hash_find() 73 if (!batadv_compare_eth(orig_node, data)) in batadv_orig_hash_find() 76 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find() 79 orig_node_tmp = orig_node; in batadv_orig_hash_find() 113 batadv_orig_node_vlan_get(struct batadv_orig_node *orig_node, in batadv_orig_node_vlan_get() argument 119 hlist_for_each_entry_rcu(tmp, &orig_node->vlan_list, list) { in batadv_orig_node_vlan_get() 148 batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node, in batadv_orig_node_vlan_new() argument 153 spin_lock_bh(&orig_node->vlan_list_lock); in batadv_orig_node_vlan_new() 156 vlan = batadv_orig_node_vlan_get(orig_node, vid); in batadv_orig_node_vlan_new() [all …]
|
D | routing.c | 55 struct batadv_orig_node *orig_node, in _batadv_update_route() argument 62 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, recv_if); in _batadv_update_route() 66 spin_lock_bh(&orig_node->neigh_list_lock); in _batadv_update_route() 81 spin_unlock_bh(&orig_node->neigh_list_lock); in _batadv_update_route() 87 "Deleting route towards: %pM\n", orig_node->orig); in _batadv_update_route() 88 batadv_tt_global_del_orig(bat_priv, orig_node, -1, in _batadv_update_route() 95 orig_node->orig, neigh_node->addr); in _batadv_update_route() 100 orig_node->orig, neigh_node->addr, in _batadv_update_route() 117 struct batadv_orig_node *orig_node, in batadv_update_route() argument 123 if (!orig_node) in batadv_update_route() [all …]
|
D | bat_iv_ogm.c | 143 struct batadv_orig_node *orig_node; in batadv_iv_ogm_orig_get() local 146 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_iv_ogm_orig_get() 147 if (orig_node) in batadv_iv_ogm_orig_get() 148 return orig_node; in batadv_iv_ogm_orig_get() 150 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_iv_ogm_orig_get() 151 if (!orig_node) in batadv_iv_ogm_orig_get() 154 spin_lock_init(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_orig_get() 156 kref_get(&orig_node->refcount); in batadv_iv_ogm_orig_get() 158 batadv_choose_orig, orig_node, in batadv_iv_ogm_orig_get() 159 &orig_node->hash_entry); in batadv_iv_ogm_orig_get() [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() 126 return orig_node; in batadv_gw_get_selected_orig() 229 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election() 231 router = batadv_orig_router_get(next_gw->orig_node, in batadv_gw_election() 254 next_gw->orig_node->orig, in batadv_gw_election() [all …]
|
D | translation-table.c | 68 struct batadv_orig_node *orig_node); 73 struct batadv_orig_node *orig_node, 366 static void batadv_tt_global_size_mod(struct batadv_orig_node *orig_node, in batadv_tt_global_size_mod() argument 371 vlan = batadv_orig_node_vlan_new(orig_node, vid); in batadv_tt_global_size_mod() 376 spin_lock_bh(&orig_node->vlan_list_lock); in batadv_tt_global_size_mod() 381 spin_unlock_bh(&orig_node->vlan_list_lock); in batadv_tt_global_size_mod() 393 static void batadv_tt_global_size_inc(struct batadv_orig_node *orig_node, in batadv_tt_global_size_inc() argument 396 batadv_tt_global_size_mod(orig_node, vid, 1); in batadv_tt_global_size_inc() 405 static void batadv_tt_global_size_dec(struct batadv_orig_node *orig_node, in batadv_tt_global_size_dec() argument 408 batadv_tt_global_size_mod(orig_node, vid, -1); in batadv_tt_global_size_dec() [all …]
|
D | bat_v_ogm.c | 58 struct batadv_orig_node *orig_node; in batadv_v_ogm_orig_get() local 61 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_v_ogm_orig_get() 62 if (orig_node) in batadv_v_ogm_orig_get() 63 return orig_node; in batadv_v_ogm_orig_get() 65 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_v_ogm_orig_get() 66 if (!orig_node) in batadv_v_ogm_orig_get() 69 kref_get(&orig_node->refcount); in batadv_v_ogm_orig_get() 71 batadv_choose_orig, orig_node, in batadv_v_ogm_orig_get() 72 &orig_node->hash_entry); in batadv_v_ogm_orig_get() 75 batadv_orig_node_put(orig_node); in batadv_v_ogm_orig_get() [all …]
|
D | originator.h | 33 batadv_neigh_node_get_or_create(struct batadv_orig_node *orig_node, 38 batadv_orig_router_get(struct batadv_orig_node *orig_node, 52 batadv_orig_ifinfo_get(struct batadv_orig_node *orig_node, 55 batadv_orig_ifinfo_new(struct batadv_orig_node *orig_node, 63 batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node, 66 batadv_orig_node_vlan_get(struct batadv_orig_node *orig_node, 163 static inline void batadv_orig_node_put(struct batadv_orig_node *orig_node) in batadv_orig_node_put() argument 165 if (!orig_node) in batadv_orig_node_put() 168 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
|
D | send.c | 178 struct batadv_orig_node *orig_node, in batadv_send_skb_to_orig() argument 181 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() 186 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig() 198 ret = batadv_frag_send_packet(skb, orig_node, neigh_node); in batadv_send_skb_to_orig() 236 struct batadv_orig_node *orig_node) in batadv_send_skb_push_fill_unicast() argument 239 u8 ttvn = (u8)atomic_read(&orig_node->last_ttvn); in batadv_send_skb_push_fill_unicast() 251 ether_addr_copy(unicast_packet->dest, orig_node->orig); in batadv_send_skb_push_fill_unicast() 266 struct batadv_orig_node *orig_node) in batadv_send_skb_prepare_unicast() argument 270 return batadv_send_skb_push_fill_unicast(skb, uni_size, orig_node); in batadv_send_skb_prepare_unicast() 336 struct batadv_orig_node *orig_node, in batadv_send_skb_unicast() argument [all …]
|
D | network-coding.h | 25 struct batadv_orig_node *orig_node, 30 struct batadv_orig_node *orig_node, 34 void batadv_nc_init_orig(struct batadv_orig_node *orig_node); 66 struct batadv_orig_node *orig_node, in batadv_nc_update_nc_node() argument 75 struct batadv_orig_node *orig_node, in batadv_nc_purge_orig() argument 85 static inline void batadv_nc_init_orig(struct batadv_orig_node *orig_node) in batadv_nc_init_orig() argument
|
D | bat_v.c | 132 batadv_v_orig_print_neigh(struct batadv_orig_node *orig_node, in batadv_v_orig_print_neigh() argument 139 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_v_orig_print_neigh() 354 struct batadv_orig_node *orig_node; in batadv_v_orig_print() local 368 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { in batadv_v_orig_print() 369 neigh_node = batadv_orig_router_get(orig_node, in batadv_v_orig_print() 379 last_seen_jiffies = jiffies - orig_node->last_seen; in batadv_v_orig_print() 385 orig_node->orig, last_seen_secs, in batadv_v_orig_print() 392 batadv_v_orig_print_neigh(orig_node, if_outgoing, seq); in batadv_v_orig_print() 426 struct batadv_orig_node *orig_node, in batadv_v_orig_dump_subentry() argument 443 last_seen_msecs = jiffies_to_msecs(jiffies - orig_node->last_seen); in batadv_v_orig_dump_subentry() [all …]
|
D | multicast.c | 1198 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_ipv4_node_get() local 1207 orig_node = tmp_orig_node; in batadv_mcast_forw_ipv4_node_get() 1212 return orig_node; in batadv_mcast_forw_ipv4_node_get() 1225 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_ipv6_node_get() local 1234 orig_node = tmp_orig_node; in batadv_mcast_forw_ipv6_node_get() 1239 return orig_node; in batadv_mcast_forw_ipv6_node_get() 1276 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_unsnoop_node_get() local 1285 orig_node = tmp_orig_node; in batadv_mcast_forw_unsnoop_node_get() 1290 return orig_node; in batadv_mcast_forw_unsnoop_node_get() 1303 struct batadv_orig_node *tmp_orig_node, *orig_node = NULL; in batadv_mcast_forw_rtr4_node_get() local [all …]
|
D | network-coding.c | 195 void batadv_nc_init_orig(struct batadv_orig_node *orig_node) in batadv_nc_init_orig() argument 197 INIT_LIST_HEAD(&orig_node->in_coding_list); in batadv_nc_init_orig() 198 INIT_LIST_HEAD(&orig_node->out_coding_list); in batadv_nc_init_orig() 199 spin_lock_init(&orig_node->in_coding_list_lock); in batadv_nc_init_orig() 200 spin_lock_init(&orig_node->out_coding_list_lock); in batadv_nc_init_orig() 214 batadv_orig_node_put(nc_node->orig_node); in batadv_nc_node_release() 363 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_purge_orig_nc_nodes() 381 struct batadv_orig_node *orig_node, in batadv_nc_purge_orig() argument 386 batadv_nc_purge_orig_nc_nodes(bat_priv, &orig_node->in_coding_list, in batadv_nc_purge_orig() 387 &orig_node->in_coding_list_lock, in batadv_nc_purge_orig() [all …]
|
D | gateway_client.h | 25 struct batadv_orig_node *orig_node); 27 struct batadv_orig_node *orig_node, 30 struct batadv_orig_node *orig_node); 42 struct batadv_orig_node *orig_node);
|
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() 461 tvlv_handler->ogm_handler(bat_priv, orig_node, in batadv_tvlv_containers_process() 480 struct batadv_orig_node *orig_node) in batadv_tvlv_ogm_receive() argument 494 batadv_tvlv_containers_process(bat_priv, true, orig_node, NULL, NULL, in batadv_tvlv_ogm_receive() 597 struct batadv_orig_node *orig_node; in batadv_tvlv_unicast_send() local 603 orig_node = batadv_orig_hash_find(bat_priv, dst); in batadv_tvlv_unicast_send() [all …]
|
D | tp_meter.c | 577 struct batadv_orig_node *orig_node, in batadv_tp_send_msg() argument 595 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_msg() 612 r = batadv_send_skb_to_orig(skb, orig_node, NULL); in batadv_tp_send_msg() 630 struct batadv_orig_node *orig_node = NULL; in batadv_tp_recv_ack() local 661 orig_node = batadv_orig_hash_find(bat_priv, icmp->orig); in batadv_tp_recv_ack() 662 if (unlikely(!orig_node)) in batadv_tp_recv_ack() 686 orig_node, recv_ack, packet_len, in batadv_tp_recv_ack() 725 orig_node, recv_ack, in batadv_tp_recv_ack() 755 if (likely(orig_node)) in batadv_tp_recv_ack() 756 batadv_orig_node_put(orig_node); in batadv_tp_recv_ack() [all …]
|
D | multicast.h | 53 struct batadv_orig_node *orig_node); 69 void batadv_mcast_purge_orig(struct batadv_orig_node *orig_node); 85 struct batadv_orig_node *orig_node) in batadv_mcast_forw_send_orig() argument 120 static inline void batadv_mcast_purge_orig(struct batadv_orig_node *orig_node) in batadv_mcast_purge_orig() argument
|
D | distributed-arp-table.h | 50 batadv_dat_init_orig_node_addr(struct batadv_orig_node *orig_node) in batadv_dat_init_orig_node_addr() argument 54 addr = batadv_choose_orig(orig_node->orig, BATADV_DAT_ADDR_MAX); in batadv_dat_init_orig_node_addr() 55 orig_node->dat_addr = (batadv_dat_addr_t)addr; in batadv_dat_init_orig_node_addr() 157 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, 51 struct batadv_orig_node *orig_node, 56 struct batadv_orig_node *orig_node,
|
D | icmp_socket.c | 173 struct batadv_orig_node *orig_node = NULL; in batadv_socket_write() local 230 orig_node = batadv_orig_hash_find(bat_priv, icmp_header->dst); in batadv_socket_write() 231 if (!orig_node) in batadv_socket_write() 234 neigh_node = batadv_orig_router_get(orig_node, in batadv_socket_write() 284 if (orig_node) in batadv_socket_write() 285 batadv_orig_node_put(orig_node); in batadv_socket_write()
|
D | fragmentation.h | 24 struct batadv_orig_node *orig_node); 26 struct batadv_orig_node *orig_node,
|
D | fragmentation.c | 61 void batadv_frag_purge_orig(struct batadv_orig_node *orig_node, in batadv_frag_purge_orig() argument 68 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig() 138 static bool batadv_frag_insert_packet(struct batadv_orig_node *orig_node, in batadv_frag_insert_packet() argument 172 chain = &orig_node->fragments[bucket]; in batadv_frag_insert_packet() 443 struct batadv_orig_node *orig_node, in batadv_frag_send_packet() argument 474 bat_priv = orig_node->bat_priv; in batadv_frag_send_packet() 512 ether_addr_copy(frag_header.dest, orig_node->orig); in batadv_frag_send_packet()
|
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 | 30 struct batadv_orig_node *orig_node, 53 struct batadv_orig_node *orig_node,
|
D | bridge_loop_avoidance.h | 42 struct batadv_orig_node *orig_node, 81 struct batadv_orig_node *orig_node, in batadv_bla_is_backbone_gw() argument
|