Home
last modified time | relevance | path

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

12345

/linux-6.15/net/rose/
H A Drose_link.c38 neigh->ftimer.expires = in rose_start_ftimer()
49 neigh->t0timer.expires = in rose_start_t0timer()
81 struct rose_neigh *neigh = from_timer(neigh, t, t0timer); in rose_t0timer_expiry() local
85 neigh->dce_mode = 0; in rose_t0timer_expiry()
105 ax25s = neigh->ax25; in rose_send_frame()
106 neigh->ax25 = ax25_send_frame(skb, 260, rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); in rose_send_frame()
128 ax25s = neigh->ax25; in rose_link_up()
129 neigh->ax25 = ax25_find_cb(rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); in rose_link_up()
146 neigh->restarted = 1; in rose_link_rx_restart()
153 neigh->restarted = 1; in rose_link_rx_restart()
[all …]
/linux-6.15/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c45 put_net_track(neigh->net, &neigh->ns_tracker); in efx_neigh_free()
46 netdev_put(neigh->egdev, &neigh->dev_tracker); in efx_neigh_free()
133 put_net_track(neigh->net, &neigh->ns_tracker); in efx_bind_neigh()
209 encap->neigh = neigh; in efx_bind_neigh()
230 netdev_put(neigh->egdev, &neigh->dev_tracker); in efx_free_neigh()
231 put_net_track(neigh->net, &neigh->ns_tracker); in efx_free_neigh()
238 struct efx_neigh_binder *neigh = encap->neigh; in efx_release_neigh() local
251 struct efx_neigh_binder *neigh = encap->neigh; in efx_gen_tun_header_eth() local
267 struct efx_neigh_binder *neigh = encap->neigh; in efx_gen_tun_header_ipv4() local
287 struct efx_neigh_binder *neigh = encap->neigh; in efx_gen_tun_header_ipv6() local
[all …]
/linux-6.15/net/mctp/
H A Dneigh.c29 struct mctp_neigh *neigh; in mctp_neigh_add() local
43 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL); in mctp_neigh_add()
44 if (!neigh) { 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()
66 mctp_dev_put(neigh->dev); in __mctp_neigh_free()
67 kfree(neigh); in __mctp_neigh_free()
97 if (neigh->dev == mdev && neigh->eid == eid && in mctp_neigh_remove()
[all …]
/linux-6.15/net/core/
H A Dneighbour.c887 WRITE_ONCE(neigh->output, neigh->ops->output); in neigh_suspect()
899 WRITE_ONCE(neigh->output, neigh->ops->connected_output); in neigh_connect()
1008 neigh->ops->error_report(neigh, skb); in neigh_invalidate()
1024 neigh->ops->solicit(neigh, skb); in neigh_probe()
1034 struct neighbour *neigh = from_timer(neigh, t, timer); in neigh_timer_handler() local
1049 neigh->confirmed + neigh->parms->reachable_time)) { in neigh_timer_handler()
1221 update(hh, neigh->dev, neigh->ha); in neigh_update_hhs()
1452 atomic_set(&neigh->probes, neigh_max_probes(neigh)); in __neigh_set_probe_once()
1465 if (neigh) in neigh_event_ns()
2545 neigh_ha_snapshot(haddr, neigh, neigh->dev); in neigh_fill_info()
[all …]
/linux-6.15/drivers/net/ethernet/chelsio/cxgb3/
H A Dl2t.c77 if (e->neigh) in neigh_replace()
78 neigh_release(e->neigh); in neigh_replace()
79 e->neigh = n; in neigh_replace()
268 if (e->neigh) { in t3_l2e_free()
270 e->neigh = NULL; in t3_l2e_free()
289 if (neigh != e->neigh) in reuse_entry()
316 if (!neigh) in t3_l2t_get()
323 dev = neigh->dev; in t3_l2t_get()
364 if (neigh) in t3_l2t_get()
365 neigh_release(neigh); in t3_l2t_get()
[all …]
/linux-6.15/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c959 if (!neigh) { in neigh_add_path()
1163 } else if (neigh->ah && neigh->ah->valid) { in ipoib_start_xmit()
1164 neigh->ah->last_send = rn->send(dev, skb, neigh->ah->ah, in ipoib_start_xmit()
1315 neigh = rcu_dereference_bh(neigh->hnext)) { in ipoib_neigh_get()
1332 return neigh; in ipoib_neigh_get()
1403 neigh = kzalloc(sizeof(*neigh), GFP_ATOMIC); in ipoib_neigh_ctor()
1404 if (!neigh) in ipoib_neigh_ctor()
1408 memcpy(&neigh->daddr, daddr, sizeof(neigh->daddr)); in ipoib_neigh_ctor()
1415 return neigh; in ipoib_neigh_ctor()
1441 neigh = rcu_dereference_protected(neigh->hnext, in ipoib_neigh_alloc()
[all …]
/linux-6.15/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
356 if (e->neigh) { in _t4_l2e_free()
358 e->neigh = NULL; in _t4_l2e_free()
374 if (e->neigh) { in t4_l2e_free()
376 e->neigh = NULL; in t4_l2e_free()
402 if (neigh != e->neigh) in reuse_entry()
534 if (neigh != e->neigh) in t4_l2t_update()
[all …]
/linux-6.15/net/ipv4/
H A Darp.c287 neigh->output = neigh->ops->connected_output; in arp_constructor()
289 neigh->output = neigh->ops->output; in arp_constructor()
385 neigh_app_ns(neigh); in arp_solicit()
1134 err = PTR_ERR(neigh); in arp_req_set()
1135 if (!IS_ERR(neigh)) { in arp_req_set()
1147 neigh_release(neigh); in arp_req_set()
1180 if (!neigh) in arp_req_get()
1184 neigh_release(neigh); in arp_req_get()
1194 neigh_release(neigh); in arp_req_get()
1208 if (neigh) { in arp_invalidate()
[all …]
/linux-6.15/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c294 kfree(neigh); in __prestera_nh_neigh_destroy()
304 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL); in __prestera_nh_neigh_create()
305 if (!neigh) in __prestera_nh_neigh_create()
312 &neigh->ht_node, in __prestera_nh_neigh_create()
317 return neigh; in __prestera_nh_neigh_create()
320 kfree(neigh); in __prestera_nh_neigh_create()
343 if (!neigh) in prestera_nh_neigh_get()
346 return neigh; in prestera_nh_neigh_get()
527 neigh = nh_grp->nh_neigh_head[nh_cnt].neigh; in prestera_nexthop_group_set()
528 if (!neigh) in prestera_nexthop_group_set()
[all …]
/linux-6.15/net/ipv6/
H A Dndisc.c369 neigh->output = neigh->ops->connected_output; in ndisc_constructor()
371 neigh->output = neigh->ops->output; in ndisc_constructor()
956 if (neigh) in ndisc_recv_ns()
964 if (neigh) in ndisc_recv_ns()
1095 if (neigh && !IS_ERR(neigh)) { in ndisc_recv_na()
1179 if (neigh) { in ndisc_recv_rs()
1368 if (!neigh) { in ndisc_router_discovery()
1389 if (neigh) in ndisc_router_discovery()
1486 if (!neigh) in ndisc_router_discovery()
1489 if (neigh) { in ndisc_router_discovery()
[all …]
/linux-6.15/include/net/
H A Dneighbour.h344 void neigh_destroy(struct neighbour *neigh);
441 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
442 neigh_destroy(neigh); in neigh_release()
447 if (neigh) in neigh_clone()
448 refcount_inc(&neigh->refcnt); in neigh_clone()
449 return neigh; in neigh_clone()
460 if (READ_ONCE(neigh->used) != now) in neigh_event_send_probe()
461 WRITE_ONCE(neigh->used, now); in neigh_event_send_probe()
592 if ((neigh->flags ^ ndm_flags) & NTF_ROUTER) { in neigh_update_is_router()
594 neigh->flags |= NTF_ROUTER; in neigh_update_is_router()
[all …]
/linux-6.15/tools/testing/selftests/net/netfilter/
H A Dnft_nat_zones.sh34 v4gc1=$(sysctl -n net.ipv4.neigh.default.gc_thresh1 2>/dev/null)
35 v4gc2=$(sysctl -n net.ipv4.neigh.default.gc_thresh2 2>/dev/null)
36 v4gc3=$(sysctl -n net.ipv4.neigh.default.gc_thresh3 2>/dev/null)
37 v6gc1=$(sysctl -n net.ipv6.neigh.default.gc_thresh1 2>/dev/null)
38 v6gc2=$(sysctl -n net.ipv6.neigh.default.gc_thresh2 2>/dev/null)
68 sysctl -q net.ipv6.neigh.default.gc_thresh1=512 2>/dev/null
69 sysctl -q net.ipv6.neigh.default.gc_thresh2=1024 2>/dev/null
70 sysctl -q net.ipv6.neigh.default.gc_thresh3=4096 2>/dev/null
71 sysctl -q net.ipv4.neigh.default.gc_thresh1=512 2>/dev/null
72 sysctl -q net.ipv4.neigh.default.gc_thresh2=1024 2>/dev/null
[all …]
/linux-6.15/net/atm/
H A Dclip.c83 entry->neigh->used = jiffies; in link_vcc()
96 entry->neigh->used = jiffies; in unlink_clip_vcc()
300 neigh->nud_state = NUD_NONE; in clip_constructor()
301 neigh->ops = &clip_neigh_ops; in clip_constructor()
302 neigh->output = neigh->ops->output; in clip_constructor()
303 entry->neigh = neigh; in clip_constructor()
446 struct neighbour *neigh; in clip_setentry() local
471 if (!neigh) in clip_setentry()
473 entry = neighbour_priv(neigh); in clip_setentry()
485 neigh_release(neigh); in clip_setentry()
[all …]
/linux-6.15/tools/testing/selftests/net/
H A Dsrv6_end_flavors_test.sh360 local neigh
366 for neigh in ${rt_neighs}; do
378 local neigh="$2"
380 local q="${neigh}"
425 local neigh
429 for neigh in ${rt_neighs}; do
430 devname="veth-rt-${rt}-${neigh}"
458 local neigh
462 for neigh in ${rt_neighs}; do
463 devname="veth-rt-${rt}-${neigh}"
[all …]
H A Dsrv6_hl2encap_red_l2vpn_test.sh284 local neigh
290 for neigh in ${rt_neighs}; do
302 local neigh="$2"
304 local q="${neigh}"
321 local neigh
325 for neigh in ${rt_neighs}; do
326 devname="veth-rt-${rt}-${neigh}"
358 local neigh
362 for neigh in ${rt_neighs}; do
363 devname="veth-rt-${rt}-${neigh}"
[all …]
H A Dsrv6_hencap_red_l3vpn_test.sh333 local neigh
339 for neigh in ${rt_neighs}; do
351 local neigh="$2"
353 local q="${neigh}"
370 local neigh
374 for neigh in ${rt_neighs}; do
375 devname="veth-rt-${rt}-${neigh}"
404 local neigh
408 for neigh in ${rt_neighs}; do
409 devname="veth-rt-${rt}-${neigh}"
[all …]
H A Darp_ndisc_evict_nocarrier.sh48 ip netns exec ${me} ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
75 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
87 ip neigh flush dev veth0
101 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
119 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
136 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
152 ip netns exec ${me} ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
169 ip netns exec ${me} ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
186 ip netns exec ${me} ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
H A Dsrv6_end_x_next_csid_l3vpn_test.sh511 local neigh
517 for neigh in ${rt_neighs}; do
529 local neigh="$2"
531 local q="${neigh}"
548 local neigh
552 for neigh in ${rt_neighs}; do
553 devname="veth-rt-${rt}-${neigh}"
655 for neigh in ${rt_neighs}; do
656 devname="veth-rt-${rt}-${neigh}"
684 local neigh
[all …]
H A Dsrv6_end_next_csid_l3vpn_test.sh461 local neigh
467 for neigh in ${rt_neighs}; do
479 local neigh="$2"
481 local q="${neigh}"
498 local neigh
502 for neigh in ${rt_neighs}; do
503 devname="veth-rt-${rt}-${neigh}"
595 local neigh
601 for neigh in ${rt_neighs}; do
602 devname="veth-rt-${rt}-${neigh}"
[all …]
/linux-6.15/net/batman-adv/
H A Dbat_v_elp.c84 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_get_throughput()
207 valid = batadv_v_elp_get_throughput(neigh, &throughput); in batadv_v_elp_throughput_metric_update()
211 ewma_throughput_add(&neigh->bat_v.throughput, throughput); in batadv_v_elp_throughput_metric_update()
228 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_wifi_neigh_probe()
269 hard_iface->net_dev->name, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
271 batadv_send_skb_packet(skb, hard_iface, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
503 struct batadv_neigh_node *neigh; in batadv_v_elp_neigh_update() local
513 neigh = batadv_neigh_node_get_or_create(orig_neigh, in batadv_v_elp_neigh_update()
515 if (!neigh) in batadv_v_elp_neigh_update()
531 neigh->last_seen = jiffies; in batadv_v_elp_neigh_update()
[all …]
/linux-6.15/net/6lowpan/
H A Dndisc.c55 struct lowpan_802154_neigh *neigh = lowpan_802154_neigh(neighbour_priv(n)); in lowpan_ndisc_802154_update() local
90 ieee802154_be16_to_le16(&neigh->short_addr, lladdr_short); in lowpan_ndisc_802154_update()
91 if (!lowpan_802154_is_valid_src_short_addr(neigh->short_addr)) in lowpan_ndisc_802154_update()
92 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_ndisc_802154_update()
110 u8 icmp6_type, struct neighbour *neigh, in lowpan_ndisc_opt_addr_space() argument
122 n = lowpan_802154_neigh(neighbour_priv(neigh)); in lowpan_ndisc_opt_addr_space()
124 read_lock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
128 read_unlock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
132 read_unlock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
/linux-6.15/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c336 if (neigh->flow) in nfp_tun_mutual_link()
342 ext = neigh->is_ipv6 ? in nfp_tun_mutual_link()
353 neigh->flow = predt; in nfp_tun_mutual_link()
411 if (IS_ERR(neigh)) in nfp_tun_cleanup_nn_entries()
413 ext = neigh->is_ipv6 ? in nfp_tun_cleanup_nn_entries()
430 if (neigh->flow) in nfp_tun_cleanup_nn_entries()
432 kfree(neigh); in nfp_tun_cleanup_nn_entries()
447 ext = neigh->is_ipv6 ? in nfp_tun_unlink_and_update_nn_entries()
450 neigh->flow = NULL; in nfp_tun_unlink_and_update_nn_entries()
470 bool neigh_invalid = !(neigh->nud_state & NUD_VALID) || neigh->dead; in nfp_tun_write_neigh()
[all …]
/linux-6.15/tools/testing/selftests/net/forwarding/
H A 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
347 sysctl_restore net.ipv6.neigh.default.gc_thresh3
348 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
/linux-6.15/include/trace/events/
H A 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.15/tools/testing/selftests/drivers/net/mlxsw/
H A Drtnetlink.sh537 ip -4 neigh show dev $swp1 192.0.2.2
546 ip -4 neigh del 192.0.2.2 dev $swp1
689 ip neigh del 192.0.2.2 dev $swp1
745 ip neigh del 2001:db8:1::2 dev $swp1
746 ip neigh del 192.0.2.3 dev $swp1
747 ip neigh del 192.0.2.2 dev $swp1
809 ip neigh del 2001:db8:1::2 dev $swp1
810 ip neigh del 192.0.2.3 dev $swp1
811 ip neigh del 192.0.2.2 dev $swp1
879 ip neigh del 192.0.2.3 dev $swp1
[all …]

12345