Home
last modified time | relevance | path

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

1234

/linux/net/rose/
A Drose_link.c35 del_timer(&neigh->ftimer); in rose_start_ftimer()
38 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()
[all …]
/linux/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/net/decnet/
A Ddn_neigh.c135 neigh->ops = &dn_neigh_ops; in dn_neigh_construct()
137 neigh->output = neigh->ops->connected_output; in dn_neigh_construct()
204 return neigh->output(neigh, skb); in dn_neigh_output_packet()
386 struct neighbour *neigh; in dn_neigh_router_hello() local
397 if (neigh) { in dn_neigh_router_hello()
400 neigh->used = jiffies; in dn_neigh_router_hello()
434 neigh_release(neigh); in dn_neigh_router_hello()
447 struct neighbour *neigh; in dn_neigh_endnode_hello() local
457 if (neigh) { in dn_neigh_endnode_hello()
460 neigh->used = jiffies; in dn_neigh_endnode_hello()
[all …]
/linux/net/core/
A Dneighbour.c901 neigh->output = neigh->ops->output; in neigh_suspect()
913 neigh->output = neigh->ops->connected_output; in neigh_connect()
1024 neigh->ops->error_report(neigh, skb); in neigh_invalidate()
1040 neigh->ops->solicit(neigh, skb); in neigh_probe()
1050 struct neighbour *neigh = from_timer(neigh, t, timer); in neigh_timer_handler() local
1065 neigh->confirmed + neigh->parms->reachable_time)) { in neigh_timer_handler()
1231 update(hh, neigh->dev, neigh->ha); in neigh_update_hhs()
1462 atomic_set(&neigh->probes, neigh_max_probes(neigh)); in __neigh_set_probe_once()
1475 if (neigh) in neigh_event_ns()
2533 neigh_ha_snapshot(haddr, neigh, neigh->dev); in neigh_fill_info()
[all …]
/linux/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/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
464 void ipoib_neigh_dtor(struct ipoib_neigh *neigh);
467 if (refcount_dec_and_test(&neigh->refcnt)) in ipoib_neigh_put()
468 ipoib_neigh_dtor(neigh); in ipoib_neigh_put()
473 void ipoib_neigh_free(struct ipoib_neigh *neigh);
637 static inline int ipoib_cm_up(struct ipoib_neigh *neigh) in ipoib_cm_up() argument
640 return test_bit(IPOIB_FLAG_OPER_UP, &neigh->cm->flags); in ipoib_cm_up()
645 return neigh->cm; in ipoib_cm_get()
650 neigh->cm = tx; in ipoib_cm_set()
672 struct ipoib_neigh *neigh);
[all …]
/linux/net/ipv4/
A Darp.c286 neigh->output = neigh->ops->connected_output; in arp_constructor()
288 neigh->output = neigh->ops->output; in arp_constructor()
384 neigh_app_ns(neigh); in arp_solicit()
1028 struct neighbour *neigh; in arp_req_set() local
1069 err = PTR_ERR(neigh); in arp_req_set()
1070 if (!IS_ERR(neigh)) { in arp_req_set()
1078 neigh_release(neigh); in arp_req_set()
1104 if (neigh) { in arp_req_get()
1114 neigh_release(neigh); in arp_req_get()
1125 if (neigh) { in arp_invalidate()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_nvmetcp_ip_services.c28 struct neighbour *neigh = NULL; in qed_route_ipv4() local
45 if (!neigh) { in qed_route_ipv4()
55 if (!(neigh->nud_state & NUD_VALID)) in qed_route_ipv4()
56 neigh_event_send(neigh, NULL); in qed_route_ipv4()
65 if (neigh->nud_state & NUD_VALID) { in qed_route_ipv4()
72 neigh_release(neigh); in qed_route_ipv4()
89 struct neighbour *neigh = NULL; in qed_route_ipv6() local
109 if (neigh) { in qed_route_ipv6()
114 neigh_event_send(neigh, NULL); in qed_route_ipv6()
125 neigh, *ndev); in qed_route_ipv6()
[all …]
/linux/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/net/ipv6/
A Dndisc.c365 neigh->output = neigh->ops->connected_output; in ndisc_constructor()
367 neigh->output = neigh->ops->output; in ndisc_constructor()
935 if (neigh) in ndisc_recv_ns()
943 if (neigh) in ndisc_recv_ns()
1029 if (neigh) { in ndisc_recv_na()
1112 if (neigh) { in ndisc_recv_rs()
1299 if (!neigh) { in ndisc_router_discovery()
1332 if (!neigh) { in ndisc_router_discovery()
1400 if (!neigh) in ndisc_router_discovery()
1403 if (neigh) { in ndisc_router_discovery()
[all …]
/linux/net/batman-adv/
A Dbat_v_elp.c166 struct batadv_hardif_neigh_node *neigh; in batadv_v_elp_throughput_metric_update() local
173 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update()
174 batadv_v_elp_get_throughput(neigh)); in batadv_v_elp_throughput_metric_update()
179 batadv_hardif_neigh_put(neigh); in batadv_v_elp_throughput_metric_update()
237 hard_iface->net_dev->name, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
239 batadv_send_skb_packet(skb, hard_iface, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
455 struct batadv_neigh_node *neigh; in batadv_v_elp_neigh_update() local
465 neigh = batadv_neigh_node_get_or_create(orig_neigh, in batadv_v_elp_neigh_update()
467 if (!neigh) in batadv_v_elp_neigh_update()
483 neigh->last_seen = jiffies; in batadv_v_elp_neigh_update()
[all …]
A Doriginator.c442 spin_lock_bh(&neigh->ifinfo_lock); in batadv_neigh_ifinfo_new()
463 spin_unlock_bh(&neigh->ifinfo_lock); in batadv_neigh_ifinfo_new()
541 if (bat_priv->algo_ops->neigh.hardif_init) in batadv_hardif_neigh_create()
749 if (!bat_priv->algo_ops->neigh.dump) { in batadv_hardif_neigh_dump()
980 struct batadv_neigh_node *neigh) in batadv_purge_neigh_ifinfo() argument
986 spin_lock_bh(&neigh->ifinfo_lock); in batadv_purge_neigh_ifinfo()
990 &neigh->ifinfo_list, list) { in batadv_purge_neigh_ifinfo()
1011 spin_unlock_bh(&neigh->ifinfo_lock); in batadv_purge_neigh_ifinfo()
1142 if (best && (bao->neigh.cmp(neigh, if_outgoing, best, in batadv_find_best_neighbor()
1146 if (!kref_get_unless_zero(&neigh->refcount)) in batadv_find_best_neighbor()
[all …]
/linux/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/include/net/
A Dneighbour.h338 void neigh_destroy(struct neighbour *neigh);
436 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
437 neigh_destroy(neigh); in neigh_release()
442 if (neigh) in neigh_clone()
443 refcount_inc(&neigh->refcnt); in neigh_clone()
444 return neigh; in neigh_clone()
453 if (READ_ONCE(neigh->used) != now) in neigh_event_send()
454 WRITE_ONCE(neigh->used, now); in neigh_event_send()
456 return __neigh_event_send(neigh, skb); in neigh_event_send()
582 neigh->flags |= NTF_ROUTER; in neigh_update_is_router()
[all …]
A Dndisc.h211 struct neighbour *neigh, u8 *ha_buf,
267 struct neighbour *neigh, in ndisc_ops_redirect_opt_addr_space() argument
272 neigh, ha_buf, ha); in ndisc_ops_redirect_opt_addr_space()
343 struct neighbour *neigh, in ndisc_redirect_opt_addr_space() argument
349 ndisc_ops_redirect_opt_addr_space(dev, neigh, ops_data_buf, in ndisc_redirect_opt_addr_space()
445 struct neighbour *neigh; in ip_neigh_gw6() local
447 neigh = __ipv6_neigh_lookup_noref_stub(dev, addr); in ip_neigh_gw6()
448 if (unlikely(!neigh)) in ip_neigh_gw6()
449 neigh = __neigh_create(ipv6_stub->nd_tbl, addr, dev, false); in ip_neigh_gw6()
451 return neigh; in ip_neigh_gw6()
[all …]
A Droute.h370 struct neighbour *neigh; in ip_neigh_gw4() local
372 neigh = __ipv4_neigh_lookup_noref(dev, daddr); in ip_neigh_gw4()
373 if (unlikely(!neigh)) in ip_neigh_gw4()
374 neigh = __neigh_create(&arp_tbl, &daddr, dev, false); in ip_neigh_gw4()
376 return neigh; in ip_neigh_gw4()
384 struct neighbour *neigh; in ip_neigh_for_gw() local
387 neigh = ip_neigh_gw4(dev, rt->rt_gw4); in ip_neigh_for_gw()
389 neigh = ip_neigh_gw6(dev, &rt->rt_gw6); in ip_neigh_for_gw()
392 neigh = ip_neigh_gw4(dev, ip_hdr(skb)->daddr); in ip_neigh_for_gw()
394 return neigh; in ip_neigh_for_gw()
/linux/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/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/tools/testing/selftests/net/
A Darp_ndisc_evict_nocarrier.sh60 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
87 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
99 ip neigh flush dev veth0
114 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
131 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
147 ip neigh get $V4_ADDR1 dev veth0 >/dev/null 2>&1
163 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
179 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
195 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1
/linux/tools/testing/selftests/net/forwarding/
A Dcustom_multipath_hash.sh280 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
281 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
282 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
300 sysctl_restore net.ipv4.neigh.default.gc_thresh3
301 sysctl_restore net.ipv4.neigh.default.gc_thresh2
302 sysctl_restore net.ipv4.neigh.default.gc_thresh1
315 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
316 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
339 sysctl_restore net.ipv6.neigh.default.gc_thresh3
340 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
A Dgre_custom_multipath_hash.sh373 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
374 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
375 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
393 sysctl_restore net.ipv4.neigh.default.gc_thresh3
394 sysctl_restore net.ipv4.neigh.default.gc_thresh2
395 sysctl_restore net.ipv4.neigh.default.gc_thresh1
404 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
405 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
428 sysctl_restore net.ipv6.neigh.default.gc_thresh3
429 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
A Dip6gre_custom_multipath_hash.sh375 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
376 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
377 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
395 sysctl_restore net.ipv4.neigh.default.gc_thresh3
396 sysctl_restore net.ipv4.neigh.default.gc_thresh2
397 sysctl_restore net.ipv4.neigh.default.gc_thresh1
406 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
407 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
430 sysctl_restore net.ipv6.neigh.default.gc_thresh3
431 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
A Drtnetlink.sh570 ip -4 neigh show dev $swp1 192.0.2.2
579 ip -4 neigh del 192.0.2.2 dev $swp1
722 ip neigh del 192.0.2.2 dev $swp1
778 ip neigh del 2001:db8:1::2 dev $swp1
779 ip neigh del 192.0.2.3 dev $swp1
780 ip neigh del 192.0.2.2 dev $swp1
842 ip neigh del 2001:db8:1::2 dev $swp1
843 ip neigh del 192.0.2.3 dev $swp1
844 ip neigh del 192.0.2.2 dev $swp1
912 ip neigh del 192.0.2.3 dev $swp1
[all …]
/linux/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 82 milliseconds

1234