Home
last modified time | relevance | path

Searched refs:neigh_node (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/net/batman-adv/
Doriginator.c295 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_release() local
298 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
301 &neigh_node->ifinfo_list, list) { in batadv_neigh_node_release()
305 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release()
307 batadv_hardif_put(neigh_node->if_incoming); in batadv_neigh_node_release()
309 kfree_rcu(neigh_node, rcu); in batadv_neigh_node_release()
317 void batadv_neigh_node_put(struct batadv_neigh_node *neigh_node) in batadv_neigh_node_put() argument
319 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
663 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_create() local
668 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr); in batadv_neigh_node_create()
[all …]
Dbat_iv_ogm.c180 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 …]
Dsend.c182 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 …]
Dbat_v_ogm.c519 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 …]
Dbat_v.c136 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 …]
Dicmp_socket.c174 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()
Dfragmentation.c356 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()
521 ret = batadv_send_unicast_skb(skb_fragment, neigh_node); in batadv_frag_send_packet()
[all …]
Dnetwork-coding.c576 batadv_send_unicast_skb(nc_packet->skb, nc_packet->neigh_node); in batadv_nc_send_packet()
1050 struct batadv_neigh_node *neigh_node) in batadv_nc_code_packets() argument
1073 router_neigh = batadv_orig_router_get(neigh_node->orig_node, in batadv_nc_code_packets()
1083 neigh_tmp = nc_packet->neigh_node; in batadv_nc_code_packets()
1104 first_dest = nc_packet->neigh_node; in batadv_nc_code_packets()
1106 second_dest = neigh_node; in batadv_nc_code_packets()
1115 first_dest = neigh_node; in batadv_nc_code_packets()
1117 second_dest = nc_packet->neigh_node; in batadv_nc_code_packets()
1415 struct batadv_neigh_node *neigh_node, in batadv_nc_skb_dst_search() argument
1418 struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_dst_search()
[all …]
Drouting.c57 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 …]
Dnetwork-coding.h36 struct batadv_neigh_node *neigh_node);
90 struct batadv_neigh_node *neigh_node) in batadv_nc_skb_forward() argument
Dfragmentation.h27 struct batadv_neigh_node *neigh_node);
Drouting.h21 struct batadv_neigh_node *neigh_node);
Doriginator.h36 void batadv_neigh_node_put(struct batadv_neigh_node *neigh_node);
Dsend.h41 struct batadv_neigh_node *neigh_node);
Ddistributed-arp-table.c682 struct batadv_neigh_node *neigh_node = NULL; in batadv_dat_forward_data() local
696 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data()
698 if (!neigh_node) in batadv_dat_forward_data()
709 send_status = batadv_send_unicast_skb(tmp_skb, neigh_node); in batadv_dat_forward_data()
727 batadv_neigh_node_put(neigh_node); in batadv_dat_forward_data()
Dtypes.h2105 struct batadv_neigh_node *neigh_node; member
/kernel/linux/linux-5.10/include/net/
Dnetrom.h89 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/
Dnr_route.c176 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()