Home
last modified time | relevance | path

Searched refs:neigh (Results 1 – 25 of 119) sorted by relevance

12345

/linux-6.6.21/net/rose/
Drose_link.c30 static void rose_transmit_restart_confirmation(struct rose_neigh *neigh);
31 static void rose_transmit_restart_request(struct rose_neigh *neigh);
33 void rose_start_ftimer(struct rose_neigh *neigh) in rose_start_ftimer() argument
35 del_timer(&neigh->ftimer); in rose_start_ftimer()
37 neigh->ftimer.function = rose_ftimer_expiry; in rose_start_ftimer()
38 neigh->ftimer.expires = in rose_start_ftimer()
41 add_timer(&neigh->ftimer); in rose_start_ftimer()
44 static void rose_start_t0timer(struct rose_neigh *neigh) in rose_start_t0timer() argument
46 del_timer(&neigh->t0timer); in rose_start_t0timer()
48 neigh->t0timer.function = rose_t0timer_expiry; in rose_start_t0timer()
[all …]
/linux-6.6.21/drivers/net/ethernet/sfc/
Dtc_encap_actions.c41 struct efx_neigh_binder *neigh = ptr; in efx_neigh_free() local
43 WARN_ON(refcount_read(&neigh->ref)); in efx_neigh_free()
44 WARN_ON(!list_empty(&neigh->users)); in efx_neigh_free()
45 put_net_track(neigh->net, &neigh->ns_tracker); in efx_neigh_free()
46 netdev_put(neigh->egdev, &neigh->dev_tracker); in efx_neigh_free()
47 kfree(neigh); in efx_neigh_free()
88 struct efx_neigh_binder *neigh, *old; in efx_bind_neigh() local
121 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL_ACCOUNT); in efx_bind_neigh()
122 if (!neigh) in efx_bind_neigh()
124 neigh->net = get_net_track(net, &neigh->ns_tracker, GFP_KERNEL_ACCOUNT); in efx_bind_neigh()
[all …]
/linux-6.6.21/net/mctp/
Dneigh.c29 struct mctp_neigh *neigh; in mctp_neigh_add() local
38 if (lladdr_len > sizeof(neigh->ha)) { in mctp_neigh_add()
43 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL); in mctp_neigh_add()
44 if (!neigh) { in mctp_neigh_add()
48 INIT_LIST_HEAD(&neigh->list); in mctp_neigh_add()
49 neigh->dev = mdev; in mctp_neigh_add()
50 mctp_dev_hold(neigh->dev); in mctp_neigh_add()
51 neigh->eid = eid; in mctp_neigh_add()
52 neigh->source = source; in mctp_neigh_add()
53 memcpy(neigh->ha, lladdr, lladdr_len); in mctp_neigh_add()
[all …]
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.c77 if (e->neigh) in neigh_replace()
78 neigh_release(e->neigh); in neigh_replace()
79 e->neigh = n; in neigh_replace()
105 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in setup_l2e_send_pending()
134 neigh_event_send(e->neigh, NULL); in t3_l2t_send_slow()
160 if (!neigh_event_send(e->neigh, NULL)) { in t3_l2t_send_slow()
184 neigh_event_send(e->neigh, NULL); in t3_l2t_send_event()
210 neigh_event_send(e->neigh, NULL); in t3_l2t_send_event()
268 if (e->neigh) { in t3_l2e_free()
269 neigh_release(e->neigh); in t3_l2e_free()
[all …]
/linux-6.6.21/net/core/
Dneighbour.c56 static void neigh_update_notify(struct neighbour *neigh, u32 nlmsg_pid);
92 static int neigh_blackhole(struct neighbour *neigh, struct sk_buff *skb) in neigh_blackhole() argument
98 static void neigh_cleanup_and_release(struct neighbour *neigh) in neigh_cleanup_and_release() argument
100 trace_neigh_cleanup_and_release(neigh, 0); in neigh_cleanup_and_release()
101 __neigh_notify(neigh, RTM_DELNEIGH, 0, 0); in neigh_cleanup_and_release()
102 call_netevent_notifiers(NETEVENT_NEIGH_UPDATE, neigh); in neigh_cleanup_and_release()
103 neigh_release(neigh); in neigh_cleanup_and_release()
179 static void neigh_update_flags(struct neighbour *neigh, u32 flags, int *notify, in neigh_update_flags() argument
182 u32 ndm_flags, old_flags = neigh->flags; in neigh_update_flags()
192 neigh->flags |= NTF_EXT_LEARNED; in neigh_update_flags()
[all …]
/linux-6.6.21/drivers/infiniband/ulp/ipoib/
Dipoib_main.c752 struct ipoib_neigh *neigh, *tn; in path_rec_completion() local
808 list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) { in path_rec_completion()
809 if (neigh->ah) { in path_rec_completion()
810 WARN_ON(neigh->ah != old_ah); in path_rec_completion()
818 ipoib_put_ah(neigh->ah); in path_rec_completion()
821 neigh->ah = path->ah; in path_rec_completion()
823 if (ipoib_cm_enabled(dev, neigh->daddr)) { in path_rec_completion()
824 if (!ipoib_cm_get(neigh)) in path_rec_completion()
825 ipoib_cm_set(neigh, ipoib_cm_create_tx(dev, in path_rec_completion()
827 neigh)); in path_rec_completion()
[all …]
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c129 if (e->neigh) in neigh_replace()
130 neigh_release(e->neigh); in neigh_replace()
131 e->neigh = n; in neigh_replace()
158 if (e->neigh && !(e->neigh->dev->flags & IFF_LOOPBACK)) in write_l2e()
159 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in write_l2e()
205 e->state = (e->neigh->nud_state & NUD_STALE) ? in do_l2t_write_rpl()
229 neigh_event_send(e->neigh, NULL); in cxgb4_l2t_send()
249 !neigh_event_send(e->neigh, NULL)) { in cxgb4_l2t_send()
356 if (e->neigh) { in _t4_l2e_free()
357 neigh_release(e->neigh); in _t4_l2e_free()
[all …]
/linux-6.6.21/net/ipv4/
Darp.c124 static int arp_constructor(struct neighbour *neigh);
125 static void arp_solicit(struct neighbour *neigh, struct sk_buff *skb);
126 static void arp_error_report(struct neighbour *neigh, struct sk_buff *skb);
218 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument
220 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
223 static int arp_constructor(struct neighbour *neigh) in arp_constructor() argument
226 struct net_device *dev = neigh->dev; in arp_constructor()
232 memcpy(neigh->primary_key, &inaddr_any, arp_tbl.key_len); in arp_constructor()
234 addr = *(__be32 *)neigh->primary_key; in arp_constructor()
242 neigh->type = inet_addr_type_dev_table(dev_net(dev), dev, addr); in arp_constructor()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_router_hw.c289 struct prestera_nh_neigh *neigh) in __prestera_nh_neigh_destroy() argument
292 &neigh->ht_node, in __prestera_nh_neigh_destroy()
294 kfree(neigh); in __prestera_nh_neigh_destroy()
301 struct prestera_nh_neigh *neigh; in __prestera_nh_neigh_create() local
304 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL); in __prestera_nh_neigh_create()
305 if (!neigh) in __prestera_nh_neigh_create()
308 memcpy(&neigh->key, key, sizeof(*key)); in __prestera_nh_neigh_create()
309 neigh->info.connected = false; in __prestera_nh_neigh_create()
310 INIT_LIST_HEAD(&neigh->nexthop_group_list); in __prestera_nh_neigh_create()
312 &neigh->ht_node, in __prestera_nh_neigh_create()
[all …]
/linux-6.6.21/net/ipv6/
Dndisc.c75 static bool ndisc_key_eq(const struct neighbour *neigh, const void *pkey);
78 static int ndisc_constructor(struct neighbour *neigh);
79 static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb);
80 static void ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb);
327 static int ndisc_constructor(struct neighbour *neigh) in ndisc_constructor() argument
329 struct in6_addr *addr = (struct in6_addr *)&neigh->primary_key; in ndisc_constructor()
330 struct net_device *dev = neigh->dev; in ndisc_constructor()
341 __neigh_parms_put(neigh->parms); in ndisc_constructor()
342 neigh->parms = neigh_parms_clone(parms); in ndisc_constructor()
344 neigh->type = is_multicast ? RTN_MULTICAST : RTN_UNICAST; in ndisc_constructor()
[all …]
/linux-6.6.21/net/batman-adv/
Dbat_v_elp.c66 static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh) in batadv_v_elp_get_throughput() argument
68 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_get_throughput()
94 ret = cfg80211_get_station(real_netdev, neigh->addr, &sinfo); in batadv_v_elp_get_throughput()
164 struct batadv_hardif_neigh_node *neigh; in batadv_v_elp_throughput_metric_update() local
168 neigh = container_of(neigh_bat_v, struct batadv_hardif_neigh_node, in batadv_v_elp_throughput_metric_update()
171 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update()
172 batadv_v_elp_get_throughput(neigh)); in batadv_v_elp_throughput_metric_update()
177 batadv_hardif_neigh_put(neigh); in batadv_v_elp_throughput_metric_update()
192 batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh) in batadv_v_elp_wifi_neigh_probe() argument
194 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_wifi_neigh_probe()
[all …]
/linux-6.6.21/include/net/
Dneighbour.h347 void neigh_destroy(struct neighbour *neigh);
348 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb,
350 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
352 void __neigh_set_probe_once(struct neighbour *neigh);
357 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
358 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
359 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
442 static inline void neigh_release(struct neighbour *neigh) in neigh_release() argument
444 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
445 neigh_destroy(neigh); in neigh_release()
[all …]
/linux-6.6.21/net/atm/
Dclip.c78 pr_debug("%p to entry %p (neigh %p)\n", clip_vcc, entry, entry->neigh); in link_vcc()
83 entry->neigh->used = jiffies; in link_vcc()
95 netif_tx_lock_bh(entry->neigh->dev); /* block clip_start_xmit() */ in unlink_clip_vcc()
96 entry->neigh->used = jiffies; in unlink_clip_vcc()
104 netif_wake_queue(entry->neigh->dev); in unlink_clip_vcc()
109 error = neigh_update(entry->neigh, NULL, NUD_NONE, in unlink_clip_vcc()
117 netif_tx_unlock_bh(entry->neigh->dev); in unlink_clip_vcc()
211 skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh->dev : clip_devs; in clip_push()
266 static void clip_neigh_solicit(struct neighbour *neigh, struct sk_buff *skb) in clip_neigh_solicit() argument
268 __be32 *ip = (__be32 *) neigh->primary_key; in clip_neigh_solicit()
[all …]
/linux-6.6.21/tools/testing/selftests/netfilter/
Dnft_nat_zones.sh40 v4gc1=$(sysctl -n net.ipv4.neigh.default.gc_thresh1 2>/dev/null)
41 v4gc2=$(sysctl -n net.ipv4.neigh.default.gc_thresh2 2>/dev/null)
42 v4gc3=$(sysctl -n net.ipv4.neigh.default.gc_thresh3 2>/dev/null)
43 v6gc1=$(sysctl -n net.ipv6.neigh.default.gc_thresh1 2>/dev/null)
44 v6gc2=$(sysctl -n net.ipv6.neigh.default.gc_thresh2 2>/dev/null)
45 v6gc3=$(sysctl -n net.ipv6.neigh.default.gc_thresh3 2>/dev/null)
55 sysctl -q net.ipv4.neigh.default.gc_thresh1=$v4gc1 2>/dev/null
56 sysctl -q net.ipv4.neigh.default.gc_thresh2=$v4gc2 2>/dev/null
57 sysctl -q net.ipv4.neigh.default.gc_thresh3=$v4gc3 2>/dev/null
58 sysctl -q net.ipv6.neigh.default.gc_thresh1=$v6gc1 2>/dev/null
[all …]
/linux-6.6.21/tools/testing/selftests/net/
Dsrv6_end_flavors_test.sh360 local neigh
366 for neigh in ${rt_neighs}; do
367 neigh_nsname="$(get_rtname "${neigh}")"
369 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
370 type veth peer name "veth-rt-${neigh}-${rt}" \
378 local neigh="$2"
380 local q="${neigh}"
425 local neigh
429 for neigh in ${rt_neighs}; do
430 devname="veth-rt-${rt}-${neigh}"
[all …]
Dsrv6_hl2encap_red_l2vpn_test.sh284 local neigh
290 for neigh in ${rt_neighs}; do
291 neigh_nsname="$(get_rtname "${neigh}")"
293 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
294 type veth peer name "veth-rt-${neigh}-${rt}" \
302 local neigh="$2"
304 local q="${neigh}"
321 local neigh
325 for neigh in ${rt_neighs}; do
326 devname="veth-rt-${rt}-${neigh}"
[all …]
Dsrv6_hencap_red_l3vpn_test.sh333 local neigh
339 for neigh in ${rt_neighs}; do
340 neigh_nsname="$(get_rtname "${neigh}")"
342 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
343 type veth peer name "veth-rt-${neigh}-${rt}" \
351 local neigh="$2"
353 local q="${neigh}"
370 local neigh
374 for neigh in ${rt_neighs}; do
375 devname="veth-rt-${rt}-${neigh}"
[all …]
Dsrv6_end_next_csid_l3vpn_test.sh461 local neigh
467 for neigh in ${rt_neighs}; do
468 neigh_nsname="$(get_rtname "${neigh}")"
470 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
471 type veth peer name "veth-rt-${neigh}-${rt}" \
479 local neigh="$2"
481 local q="${neigh}"
498 local neigh
502 for neigh in ${rt_neighs}; do
503 devname="veth-rt-${rt}-${neigh}"
[all …]
Dsrv6_end_x_next_csid_l3vpn_test.sh511 local neigh
517 for neigh in ${rt_neighs}; do
518 neigh_nsname="$(get_rtname "${neigh}")"
520 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
521 type veth peer name "veth-rt-${neigh}-${rt}" \
529 local neigh="$2"
531 local q="${neigh}"
548 local neigh
552 for neigh in ${rt_neighs}; do
553 devname="veth-rt-${rt}-${neigh}"
[all …]
Darp_ndisc_evict_nocarrier.sh61 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
88 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
100 ip neigh flush dev veth0
115 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
133 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
150 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
166 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
183 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
200 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
/linux-6.6.21/net/6lowpan/
Dndisc.c60 struct lowpan_802154_neigh *neigh = lowpan_802154_neigh(neighbour_priv(n)); in lowpan_ndisc_802154_update() local
95 ieee802154_be16_to_le16(&neigh->short_addr, lladdr_short); in lowpan_ndisc_802154_update()
96 if (!lowpan_802154_is_valid_src_short_addr(neigh->short_addr)) in lowpan_ndisc_802154_update()
97 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_ndisc_802154_update()
115 u8 icmp6_type, struct neighbour *neigh, in lowpan_ndisc_opt_addr_space() argument
127 n = lowpan_802154_neigh(neighbour_priv(neigh)); in lowpan_ndisc_opt_addr_space()
129 read_lock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
133 read_unlock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
137 read_unlock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c323 struct nfp_neigh_entry *neigh) in nfp_tun_mutual_link() argument
329 if (flow_pay->pre_tun_rule.is_ipv6 != neigh->is_ipv6) in nfp_tun_mutual_link()
336 if (neigh->flow) in nfp_tun_mutual_link()
339 common = neigh->is_ipv6 ? in nfp_tun_mutual_link()
340 &((struct nfp_tun_neigh_v6 *)neigh->payload)->common : in nfp_tun_mutual_link()
341 &((struct nfp_tun_neigh_v4 *)neigh->payload)->common; in nfp_tun_mutual_link()
342 ext = neigh->is_ipv6 ? in nfp_tun_mutual_link()
343 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext : in nfp_tun_mutual_link()
344 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext; in nfp_tun_mutual_link()
352 list_add(&neigh->list_head, &predt->nn_list); in nfp_tun_mutual_link()
[all …]
/linux-6.6.21/tools/testing/selftests/net/forwarding/
Dcustom_multipath_hash.sh288 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
289 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
290 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
308 sysctl_restore net.ipv4.neigh.default.gc_thresh3
309 sysctl_restore net.ipv4.neigh.default.gc_thresh2
310 sysctl_restore net.ipv4.neigh.default.gc_thresh1
323 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
324 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
325 sysctl_set net.ipv6.neigh.default.gc_thresh3 1024
347 sysctl_restore net.ipv6.neigh.default.gc_thresh3
[all …]
/linux-6.6.21/include/trace/events/
Dneigh.h2 #define TRACE_SYSTEM neigh
228 TP_PROTO(struct neighbour *neigh, int err),
229 TP_ARGS(neigh, err)
233 TP_PROTO(struct neighbour *neigh, int err),
234 TP_ARGS(neigh, err)
238 TP_PROTO(struct neighbour *neigh, int err),
239 TP_ARGS(neigh, err)
243 TP_PROTO(struct neighbour *neigh, int err),
244 TP_ARGS(neigh, err)
248 TP_PROTO(struct neighbour *neigh, int rc),
[all …]
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh535 ip -4 neigh add 192.0.2.2 lladdr de:ad:be:ef:13:37 nud perm dev $swp1
536 ip -6 neigh add 2001:db8:1::2 lladdr de:ad:be:ef:13:37 nud perm \
540 ip -4 neigh show dev $swp1 192.0.2.2
543 ip -6 neigh show dev $swp1 2001:db8:1::2
548 ip -6 neigh del 2001:db8:1::2 dev $swp1
549 ip -4 neigh del 192.0.2.2 dev $swp1
662 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
669 ip neigh replace 192.0.2.2 nud failed dev $swp1
674 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \
692 ip neigh del 192.0.2.2 dev $swp1
[all …]

12345