/kernel/linux/linux-5.10/net/batman-adv/ |
D | originator.c | 265 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_release() local 268 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release() 271 &neigh_node->ifinfo_list, list) { in batadv_neigh_node_release() 275 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release() 277 batadv_hardif_put(neigh_node->if_incoming); in batadv_neigh_node_release() 279 kfree_rcu(neigh_node, rcu); in batadv_neigh_node_release() 623 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_create() local 628 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr); in batadv_neigh_node_create() 629 if (neigh_node) in batadv_neigh_node_create() 637 neigh_node = kzalloc(sizeof(*neigh_node), GFP_ATOMIC); in batadv_neigh_node_create() [all …]
|
D | bat_iv_ogm.c | 180 struct batadv_neigh_node *neigh_node; in batadv_iv_ogm_neigh_new() local 182 neigh_node = batadv_neigh_node_get_or_create(orig_node, in batadv_iv_ogm_neigh_new() 184 if (!neigh_node) in batadv_iv_ogm_neigh_new() 187 neigh_node->orig_node = orig_neigh; in batadv_iv_ogm_neigh_new() 190 return neigh_node; in batadv_iv_ogm_neigh_new() 929 struct batadv_neigh_node *neigh_node = NULL; in batadv_iv_ogm_orig_update() local 947 if (WARN(neigh_node, "too many matching neigh_nodes")) in batadv_iv_ogm_orig_update() 948 batadv_neigh_node_put(neigh_node); in batadv_iv_ogm_orig_update() 949 neigh_node = tmp_neigh_node; in batadv_iv_ogm_orig_update() 973 if (!neigh_node) { in batadv_iv_ogm_orig_update() [all …]
|
D | send.c | 182 struct batadv_neigh_node *neigh_node; in batadv_send_skb_to_orig() local 186 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig() 187 if (!neigh_node) { in batadv_send_skb_to_orig() 196 skb->len > neigh_node->if_incoming->net_dev->mtu) { in batadv_send_skb_to_orig() 198 ret = batadv_frag_send_packet(skb, orig_node, neigh_node); in batadv_send_skb_to_orig() 209 if (recv_if && batadv_nc_skb_forward(skb, neigh_node)) in batadv_send_skb_to_orig() 212 ret = batadv_send_unicast_skb(skb, neigh_node); in batadv_send_skb_to_orig() 218 batadv_neigh_node_put(neigh_node); in batadv_send_skb_to_orig() 852 struct batadv_hardif_neigh_node *neigh_node; in batadv_send_outstanding_bcast_packet() local 893 neigh_node = NULL; in batadv_send_outstanding_bcast_packet() [all …]
|
D | bat_v_ogm.c | 519 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_forward() argument 544 if (neigh_node != router) in batadv_v_ogm_forward() 558 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_forward() 611 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_metric_update() argument 648 neigh_node->last_seen = jiffies; in batadv_v_ogm_metric_update() 655 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_v_ogm_metric_update() 695 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_route_update() argument 737 if (router == neigh_node) in batadv_v_ogm_route_update() 746 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_route_update() 763 batadv_update_route(bat_priv, orig_node, if_outgoing, neigh_node); in batadv_v_ogm_route_update() [all …]
|
D | bat_v.c | 136 struct batadv_neigh_node *neigh_node; in batadv_v_orig_print_neigh() local 139 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_v_orig_print_neigh() 140 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_orig_print_neigh() 145 neigh_node->addr, in batadv_v_orig_print_neigh() 351 struct batadv_neigh_node *neigh_node; in batadv_v_orig_print() local 369 neigh_node = batadv_orig_router_get(orig_node, in batadv_v_orig_print() 371 if (!neigh_node) in batadv_v_orig_print() 374 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, in batadv_v_orig_print() 389 neigh_node->addr, in batadv_v_orig_print() 390 neigh_node->if_incoming->net_dev->name); in batadv_v_orig_print() [all …]
|
D | icmp_socket.c | 174 struct batadv_neigh_node *neigh_node = NULL; in batadv_socket_write() local 234 neigh_node = batadv_orig_router_get(orig_node, in batadv_socket_write() 236 if (!neigh_node) in batadv_socket_write() 239 if (!neigh_node->if_incoming) in batadv_socket_write() 242 if (neigh_node->if_incoming->if_status != BATADV_IF_ACTIVE) in batadv_socket_write() 247 addr = neigh_node->if_incoming->net_dev->dev_addr; in batadv_socket_write() 271 batadv_send_unicast_skb(skb, neigh_node); in batadv_socket_write() 282 if (neigh_node) in batadv_socket_write() 283 batadv_neigh_node_put(neigh_node); in batadv_socket_write()
|
D | fragmentation.c | 356 struct batadv_neigh_node *neigh_node = NULL; in batadv_frag_skb_fwd() local 366 neigh_node = batadv_find_router(bat_priv, orig_node_dst, recv_if); in batadv_frag_skb_fwd() 367 if (!neigh_node) in batadv_frag_skb_fwd() 374 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd() 380 batadv_send_unicast_skb(skb, neigh_node); in batadv_frag_skb_fwd() 387 if (neigh_node) in batadv_frag_skb_fwd() 388 batadv_neigh_node_put(neigh_node); in batadv_frag_skb_fwd() 444 struct batadv_neigh_node *neigh_node) in batadv_frag_send_packet() argument 446 struct net_device *net_dev = neigh_node->if_incoming->net_dev; in batadv_frag_send_packet() 532 ret = batadv_send_unicast_skb(skb_fragment, neigh_node); in batadv_frag_send_packet() [all …]
|
D | network-coding.c | 582 batadv_send_unicast_skb(nc_packet->skb, nc_packet->neigh_node); in batadv_nc_send_packet() 1056 struct batadv_neigh_node *neigh_node) in batadv_nc_code_packets() argument 1079 router_neigh = batadv_orig_router_get(neigh_node->orig_node, in batadv_nc_code_packets() 1089 neigh_tmp = nc_packet->neigh_node; in batadv_nc_code_packets() 1110 first_dest = nc_packet->neigh_node; in batadv_nc_code_packets() 1112 second_dest = neigh_node; in batadv_nc_code_packets() 1121 first_dest = neigh_node; in batadv_nc_code_packets() 1123 second_dest = nc_packet->neigh_node; in batadv_nc_code_packets() 1421 struct batadv_neigh_node *neigh_node, in batadv_nc_skb_dst_search() argument 1424 struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_dst_search() [all …]
|
D | originator.h | 136 static inline void batadv_neigh_node_put(struct batadv_neigh_node *neigh_node) in batadv_neigh_node_put() argument 138 if (!neigh_node) in batadv_neigh_node_put() 141 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
|
D | routing.c | 57 struct batadv_neigh_node *neigh_node) in _batadv_update_route() argument 76 if (neigh_node) in _batadv_update_route() 77 kref_get(&neigh_node->refcount); in _batadv_update_route() 79 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node, in _batadv_update_route() 85 if (curr_router && !neigh_node) { in _batadv_update_route() 92 } else if (!curr_router && neigh_node) { in _batadv_update_route() 95 orig_node->orig, neigh_node->addr); in _batadv_update_route() 97 } else if (neigh_node && curr_router) { in _batadv_update_route() 100 orig_node->orig, neigh_node->addr, in _batadv_update_route() 119 struct batadv_neigh_node *neigh_node) in batadv_update_route() argument [all …]
|
D | network-coding.h | 36 struct batadv_neigh_node *neigh_node); 90 struct batadv_neigh_node *neigh_node) in batadv_nc_skb_forward() argument
|
D | fragmentation.h | 27 struct batadv_neigh_node *neigh_node);
|
D | routing.h | 21 struct batadv_neigh_node *neigh_node);
|
D | send.h | 41 struct batadv_neigh_node *neigh_node);
|
D | distributed-arp-table.c | 685 struct batadv_neigh_node *neigh_node = NULL; in batadv_dat_forward_data() local 699 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data() 701 if (!neigh_node) in batadv_dat_forward_data() 712 send_status = batadv_send_unicast_skb(tmp_skb, neigh_node); in batadv_dat_forward_data() 730 batadv_neigh_node_put(neigh_node); in batadv_dat_forward_data()
|
D | types.h | 2105 struct batadv_neigh_node *neigh_node; member
|
/kernel/linux/linux-5.10/include/net/ |
D | netrom.h | 89 struct hlist_node neigh_node; member 161 hlist_for_each_entry(__nr_neigh, list, neigh_node) 164 hlist_for_each_entry_safe(__nr_neigh, node2, list, neigh_node)
|
/kernel/linux/linux-5.10/net/netrom/ |
D | nr_route.c | 176 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_node() 305 hlist_del_init(&nr_neigh->neigh_node); in __nr_remove_neigh() 419 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_neigh() 926 nr_neigh = hlist_entry(v, struct nr_neigh, neigh_node); in nr_neigh_show()
|