Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/net/rose/
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.3-rc2/net/mctp/
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.3-rc2/drivers/net/ethernet/chelsio/cxgb3/
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.3-rc2/net/core/
A Dneighbour.c954 neigh->output = neigh->ops->output; in neigh_suspect()
966 neigh->output = neigh->ops->connected_output; in neigh_connect()
1079 neigh->ops->error_report(neigh, skb); in neigh_invalidate()
1095 neigh->ops->solicit(neigh, skb); in neigh_probe()
1105 struct neighbour *neigh = from_timer(neigh, t, timer); in neigh_timer_handler() local
1120 neigh->confirmed + neigh->parms->reachable_time)) { in neigh_timer_handler()
1292 update(hh, neigh->dev, neigh->ha); in neigh_update_hhs()
1523 atomic_set(&neigh->probes, neigh_max_probes(neigh)); in __neigh_set_probe_once()
1536 if (neigh) in neigh_event_ns()
2613 neigh_ha_snapshot(haddr, neigh, neigh->dev); in neigh_fill_info()
[all …]
/linux-6.3-rc2/drivers/infiniband/ulp/ipoib/
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()
1288 neigh = rcu_dereference_bh(neigh->hnext)) { in ipoib_neigh_get()
1305 return neigh; in ipoib_neigh_get()
1376 neigh = kzalloc(sizeof(*neigh), GFP_ATOMIC); in ipoib_neigh_ctor()
1377 if (!neigh) in ipoib_neigh_ctor()
1381 memcpy(&neigh->daddr, daddr, sizeof(neigh->daddr)); in ipoib_neigh_ctor()
1388 return neigh; in ipoib_neigh_ctor()
1414 neigh = rcu_dereference_protected(neigh->hnext, in ipoib_neigh_alloc()
[all …]
A Dipoib.h250 struct ipoib_neigh *neigh; member
465 void ipoib_neigh_dtor(struct ipoib_neigh *neigh);
468 if (refcount_dec_and_test(&neigh->refcnt)) in ipoib_neigh_put()
469 ipoib_neigh_dtor(neigh); in ipoib_neigh_put()
474 void ipoib_neigh_free(struct ipoib_neigh *neigh);
638 static inline int ipoib_cm_up(struct ipoib_neigh *neigh) in ipoib_cm_up() argument
641 return test_bit(IPOIB_FLAG_OPER_UP, &neigh->cm->flags); in ipoib_cm_up()
646 return neigh->cm; in ipoib_cm_get()
651 neigh->cm = tx; in ipoib_cm_set()
673 struct ipoib_neigh *neigh);
[all …]
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/
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.3-rc2/net/ipv4/
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()
1090 err = PTR_ERR(neigh); in arp_req_set()
1091 if (!IS_ERR(neigh)) { in arp_req_set()
1099 neigh_release(neigh); in arp_req_set()
1125 if (neigh) { in arp_req_get()
1135 neigh_release(neigh); in arp_req_get()
1146 if (neigh) { in arp_invalidate()
1148 neigh_release(neigh); in arp_invalidate()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
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.3-rc2/net/ipv6/
A Dndisc.c366 neigh->output = neigh->ops->connected_output; in ndisc_constructor()
368 neigh->output = neigh->ops->output; in ndisc_constructor()
950 if (neigh) in ndisc_recv_ns()
958 if (neigh) in ndisc_recv_ns()
1089 if (neigh && !IS_ERR(neigh)) { in ndisc_recv_na()
1172 if (neigh) { in ndisc_recv_rs()
1357 if (!neigh) { in ndisc_router_discovery()
1378 if (neigh) in ndisc_router_discovery()
1465 if (!neigh) in ndisc_router_discovery()
1468 if (neigh) { in ndisc_router_discovery()
[all …]
/linux-6.3-rc2/net/batman-adv/
A Dbat_v_elp.c164 struct batadv_hardif_neigh_node *neigh; in batadv_v_elp_throughput_metric_update() local
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()
235 hard_iface->net_dev->name, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
237 batadv_send_skb_packet(skb, hard_iface, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
453 struct batadv_neigh_node *neigh; in batadv_v_elp_neigh_update() local
463 neigh = batadv_neigh_node_get_or_create(orig_neigh, in batadv_v_elp_neigh_update()
465 if (!neigh) in batadv_v_elp_neigh_update()
481 neigh->last_seen = jiffies; in batadv_v_elp_neigh_update()
[all …]
/linux-6.3-rc2/include/net/
A Dneighbour.h349 void neigh_destroy(struct neighbour *neigh);
448 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
449 neigh_destroy(neigh); in neigh_release()
454 if (neigh) in neigh_clone()
455 refcount_inc(&neigh->refcnt); in neigh_clone()
456 return neigh; in neigh_clone()
467 if (READ_ONCE(neigh->used) != now) in neigh_event_send_probe()
468 WRITE_ONCE(neigh->used, now); in neigh_event_send_probe()
599 if ((neigh->flags ^ ndm_flags) & NTF_ROUTER) { in neigh_update_is_router()
601 neigh->flags |= NTF_ROUTER; in neigh_update_is_router()
[all …]
/linux-6.3-rc2/net/atm/
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.3-rc2/tools/testing/selftests/net/
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 …]
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 …]
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 …]
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 …]
A 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.3-rc2/tools/testing/selftests/netfilter/
A 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)
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
106 sysctl -q net.ipv6.neigh.default.gc_thresh1=512 2>/dev/null
107 sysctl -q net.ipv6.neigh.default.gc_thresh2=1024 2>/dev/null
108 sysctl -q net.ipv6.neigh.default.gc_thresh3=4096 2>/dev/null
109 sysctl -q net.ipv4.neigh.default.gc_thresh1=512 2>/dev/null
110 sysctl -q net.ipv4.neigh.default.gc_thresh2=1024 2>/dev/null
[all …]
/linux-6.3-rc2/net/6lowpan/
A 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.3-rc2/drivers/net/ethernet/netronome/nfp/flower/
A Dtunnel_conf.c324 if (neigh->flow) in nfp_tun_mutual_link()
330 ext = neigh->is_ipv6 ? in nfp_tun_mutual_link()
341 neigh->flow = predt; in nfp_tun_mutual_link()
399 if (IS_ERR(neigh)) in nfp_tun_cleanup_nn_entries()
401 ext = neigh->is_ipv6 ? in nfp_tun_cleanup_nn_entries()
418 if (neigh->flow) in nfp_tun_cleanup_nn_entries()
420 kfree(neigh); in nfp_tun_cleanup_nn_entries()
435 ext = neigh->is_ipv6 ? in nfp_tun_unlink_and_update_nn_entries()
438 neigh->flow = NULL; in nfp_tun_unlink_and_update_nn_entries()
458 bool neigh_invalid = !(neigh->nud_state & NUD_VALID) || neigh->dead; in nfp_tun_write_neigh()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/
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 …]
A Dgre_custom_multipath_hash.sh381 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
382 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
383 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
401 sysctl_restore net.ipv4.neigh.default.gc_thresh3
402 sysctl_restore net.ipv4.neigh.default.gc_thresh2
403 sysctl_restore net.ipv4.neigh.default.gc_thresh1
412 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
413 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
436 sysctl_restore net.ipv6.neigh.default.gc_thresh3
437 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
A Dip6gre_custom_multipath_hash.sh383 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
384 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
385 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
403 sysctl_restore net.ipv4.neigh.default.gc_thresh3
404 sysctl_restore net.ipv4.neigh.default.gc_thresh2
405 sysctl_restore net.ipv4.neigh.default.gc_thresh1
414 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
415 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
438 sysctl_restore net.ipv6.neigh.default.gc_thresh3
439 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
/linux-6.3-rc2/include/trace/events/
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 …]

Completed in 66 milliseconds

12345