Home
last modified time | relevance | path

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

/Linux-v6.1/net/batman-adv/
Doriginator.c264 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_release() local
267 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
270 &neigh_node->ifinfo_list, list) { in batadv_neigh_node_release()
274 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release()
276 batadv_hardif_put(neigh_node->if_incoming); in batadv_neigh_node_release()
278 kfree_rcu(neigh_node, rcu); in batadv_neigh_node_release()
622 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_create() local
627 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr); in batadv_neigh_node_create()
628 if (neigh_node) in batadv_neigh_node_create()
636 neigh_node = kzalloc(sizeof(*neigh_node), GFP_ATOMIC); in batadv_neigh_node_create()
[all …]
Dbat_iv_ogm.c179 struct batadv_neigh_node *neigh_node; in batadv_iv_ogm_neigh_new() local
181 neigh_node = batadv_neigh_node_get_or_create(orig_node, in batadv_iv_ogm_neigh_new()
183 if (!neigh_node) in batadv_iv_ogm_neigh_new()
186 neigh_node->orig_node = orig_neigh; in batadv_iv_ogm_neigh_new()
189 return neigh_node; in batadv_iv_ogm_neigh_new()
926 struct batadv_neigh_node *neigh_node = NULL; in batadv_iv_ogm_orig_update() local
944 if (WARN(neigh_node, "too many matching neigh_nodes")) in batadv_iv_ogm_orig_update()
945 batadv_neigh_node_put(neigh_node); in batadv_iv_ogm_orig_update()
946 neigh_node = tmp_neigh_node; in batadv_iv_ogm_orig_update()
970 if (!neigh_node) { in batadv_iv_ogm_orig_update()
[all …]
Dbat_v_ogm.c520 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_forward() argument
545 if (neigh_node != router) in batadv_v_ogm_forward()
559 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_forward()
609 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_metric_update() argument
646 neigh_node->last_seen = jiffies; in batadv_v_ogm_metric_update()
653 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_v_ogm_metric_update()
691 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_route_update() argument
733 if (router == neigh_node) in batadv_v_ogm_route_update()
742 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_ogm_route_update()
759 batadv_update_route(bat_priv, orig_node, if_outgoing, neigh_node); in batadv_v_ogm_route_update()
[all …]
Dfragmentation.c355 struct batadv_neigh_node *neigh_node = NULL; in batadv_frag_skb_fwd() local
365 neigh_node = batadv_find_router(bat_priv, orig_node_dst, recv_if); in batadv_frag_skb_fwd()
366 if (!neigh_node) in batadv_frag_skb_fwd()
373 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd()
379 batadv_send_unicast_skb(skb, neigh_node); in batadv_frag_skb_fwd()
385 batadv_neigh_node_put(neigh_node); in batadv_frag_skb_fwd()
441 struct batadv_neigh_node *neigh_node) in batadv_frag_send_packet() argument
443 struct net_device *net_dev = neigh_node->if_incoming->net_dev; in batadv_frag_send_packet()
529 ret = batadv_send_unicast_skb(skb_fragment, neigh_node); in batadv_frag_send_packet()
552 ret = batadv_send_unicast_skb(skb, neigh_node); in batadv_frag_send_packet()
Dsend.c181 struct batadv_neigh_node *neigh_node; in batadv_send_skb_to_orig() local
185 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig()
186 if (!neigh_node) { in batadv_send_skb_to_orig()
195 skb->len > neigh_node->if_incoming->net_dev->mtu) { in batadv_send_skb_to_orig()
197 ret = batadv_frag_send_packet(skb, orig_node, neigh_node); in batadv_send_skb_to_orig()
208 if (recv_if && batadv_nc_skb_forward(skb, neigh_node)) in batadv_send_skb_to_orig()
211 ret = batadv_send_unicast_skb(skb, neigh_node); in batadv_send_skb_to_orig()
217 batadv_neigh_node_put(neigh_node); in batadv_send_skb_to_orig()
853 struct batadv_hardif_neigh_node *neigh_node = NULL; in batadv_send_no_broadcast() local
862 neigh_node = batadv_hardif_neigh_get(if_out, in batadv_send_no_broadcast()
[all …]
Dnetwork-coding.c575 batadv_send_unicast_skb(nc_packet->skb, nc_packet->neigh_node); in batadv_nc_send_packet()
1047 struct batadv_neigh_node *neigh_node) in batadv_nc_code_packets() argument
1070 router_neigh = batadv_orig_router_get(neigh_node->orig_node, in batadv_nc_code_packets()
1080 neigh_tmp = nc_packet->neigh_node; in batadv_nc_code_packets()
1101 first_dest = nc_packet->neigh_node; in batadv_nc_code_packets()
1103 second_dest = neigh_node; in batadv_nc_code_packets()
1112 first_dest = neigh_node; in batadv_nc_code_packets()
1114 second_dest = nc_packet->neigh_node; in batadv_nc_code_packets()
1408 struct batadv_neigh_node *neigh_node, in batadv_nc_skb_dst_search() argument
1411 struct net_device *netdev = neigh_node->if_incoming->soft_iface; in batadv_nc_skb_dst_search()
[all …]
Dbat_v.c272 struct batadv_neigh_node *neigh_node, in batadv_v_orig_dump_subentry() argument
280 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_v_orig_dump_subentry()
291 if_outgoing != neigh_node->if_incoming) in batadv_v_orig_dump_subentry()
301 neigh_node->addr) || in batadv_v_orig_dump_subentry()
303 neigh_node->if_incoming->net_dev->name) || in batadv_v_orig_dump_subentry()
305 neigh_node->if_incoming->net_dev->ifindex) || in batadv_v_orig_dump_subentry()
343 struct batadv_neigh_node *neigh_node; in batadv_v_orig_dump_entry() local
351 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_v_orig_dump_entry()
355 best = (neigh_node == neigh_node_best); in batadv_v_orig_dump_entry()
359 neigh_node, best)) { in batadv_v_orig_dump_entry()
Doriginator.h132 static inline void batadv_neigh_node_put(struct batadv_neigh_node *neigh_node) in batadv_neigh_node_put() argument
134 if (!neigh_node) in batadv_neigh_node_put()
137 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
Drouting.c56 struct batadv_neigh_node *neigh_node) in _batadv_update_route() argument
75 if (neigh_node) in _batadv_update_route()
76 kref_get(&neigh_node->refcount); in _batadv_update_route()
78 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node, in _batadv_update_route()
84 if (curr_router && !neigh_node) { in _batadv_update_route()
91 } else if (!curr_router && neigh_node) { in _batadv_update_route()
94 orig_node->orig, neigh_node->addr); in _batadv_update_route()
96 } else if (neigh_node && curr_router) { in _batadv_update_route()
99 orig_node->orig, neigh_node->addr, in _batadv_update_route()
117 struct batadv_neigh_node *neigh_node) in batadv_update_route() argument
[all …]
Dnetwork-coding.h35 struct batadv_neigh_node *neigh_node);
87 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);
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.h2038 struct batadv_neigh_node *neigh_node; member
/Linux-v6.1/include/net/
Dnetrom.h90 struct hlist_node neigh_node; member
162 hlist_for_each_entry(__nr_neigh, list, neigh_node)
165 hlist_for_each_entry_safe(__nr_neigh, node2, list, neigh_node)
/Linux-v6.1/net/netrom/
Dnr_route.c176 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_node()
306 hlist_del_init(&nr_neigh->neigh_node); in __nr_remove_neigh()
421 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_neigh()
929 nr_neigh = hlist_entry(v, struct nr_neigh, neigh_node); in nr_neigh_show()