/openbmc/linux/net/batman-adv/ |
H A D | originator.c | 305 kfree_rcu(neigh_node, rcu); in batadv_neigh_node_release() 655 if (neigh_node) in batadv_neigh_node_create() 663 neigh_node = kzalloc(sizeof(*neigh_node), GFP_ATOMIC); in batadv_neigh_node_create() 664 if (!neigh_node) in batadv_neigh_node_create() 674 neigh_node->orig_node = orig_node; in batadv_neigh_node_create() 675 neigh_node->last_seen = jiffies; in batadv_neigh_node_create() 682 kref_init(&neigh_node->refcount); in batadv_neigh_node_create() 684 kref_get(&neigh_node->refcount); in batadv_neigh_node_create() 695 return neigh_node; in batadv_neigh_node_create() 715 if (neigh_node) in batadv_neigh_node_get_or_create() [all …]
|
H A D | bat_iv_ogm.c | 182 if (!neigh_node) in batadv_iv_ogm_neigh_new() 188 return neigh_node; in batadv_iv_ogm_neigh_new() 945 neigh_node = tmp_neigh_node; in batadv_iv_ogm_orig_update() 969 if (!neigh_node) { in batadv_iv_ogm_orig_update() 981 if (!neigh_node) in batadv_iv_ogm_orig_update() 1012 if (router == neigh_node) in batadv_iv_ogm_orig_update() 1093 neigh_node = tmp_neigh_node; in batadv_iv_ogm_calc_tq() 1098 if (!neigh_node) in batadv_iv_ogm_calc_tq() 1104 if (!neigh_node) in batadv_iv_ogm_calc_tq() 1254 neigh_addr = neigh_node->addr; in batadv_iv_ogm_update_seqnos() [all …]
|
H A D | bat_v_ogm.c | 521 struct batadv_neigh_node *neigh_node, in batadv_v_ogm_forward() argument 546 if (neigh_node != router) in batadv_v_ogm_forward() 647 neigh_node->last_seen = jiffies; in batadv_v_ogm_metric_update() 734 if (router == neigh_node) in batadv_v_ogm_route_update() 795 neigh_node, if_incoming, in batadv_v_ogm_process_per_outif() 811 neigh_node, if_incoming, in batadv_v_ogm_process_per_outif() 859 struct batadv_neigh_node *neigh_node = NULL; in batadv_v_ogm_process() local 906 if (!neigh_node) in batadv_v_ogm_process() 921 neigh_node, if_incoming, in batadv_v_ogm_process() 965 orig_node, neigh_node, in batadv_v_ogm_process() [all …]
|
H A D | fragmentation.c | 355 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()
|
H A D | send.c | 181 struct batadv_neigh_node *neigh_node; in batadv_send_skb_to_orig() local 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() 867 orig_neigh = neigh_node ? neigh_node->orig : NULL; in batadv_send_no_broadcast() [all …]
|
H A D | network-coding.c | 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() 1421 neigh_node->addr, in batadv_nc_skb_dst_search() 1435 neigh_node->addr); in batadv_nc_skb_dst_search() 1437 nc_packet->neigh_node->addr); in batadv_nc_skb_dst_search() 1441 neigh_node)) in batadv_nc_skb_dst_search() 1476 nc_packet->neigh_node = neigh_node; in batadv_nc_skb_add_to_path() [all …]
|
H A D | originator.h | 132 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()
|
H A D | bat_v.c | 272 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()
|
H A D | routing.c | 56 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() 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 126 if (router != neigh_node) in batadv_update_route() [all …]
|
H A D | network-coding.h | 35 struct batadv_neigh_node *neigh_node); 87 struct batadv_neigh_node *neigh_node) in batadv_nc_skb_forward() argument
|
H A D | fragmentation.h | 27 struct batadv_neigh_node *neigh_node);
|
H A D | routing.h | 21 struct batadv_neigh_node *neigh_node);
|
H A D | send.h | 41 struct batadv_neigh_node *neigh_node);
|
H A D | distributed-arp-table.c | 681 struct batadv_neigh_node *neigh_node = NULL; in batadv_dat_forward_data() local 695 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data() 697 if (!neigh_node) in batadv_dat_forward_data() 708 send_status = batadv_send_unicast_skb(tmp_skb, neigh_node); in batadv_dat_forward_data() 726 batadv_neigh_node_put(neigh_node); in batadv_dat_forward_data()
|
H A D | types.h | 2044 struct batadv_neigh_node *neigh_node; member
|
/openbmc/linux/include/net/ |
H A D | netrom.h | 90 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)
|
/openbmc/linux/net/netrom/ |
H A D | nr_route.c | 176 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_node() 298 hlist_del_init(&nr_neigh->neigh_node); in __nr_remove_neigh() 416 hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list); in nr_add_neigh() 924 nr_neigh = hlist_entry(v, struct nr_neigh, neigh_node); in nr_neigh_show()
|