Home
last modified time | relevance | path

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

12345

/linux/net/rose/
H A 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 timer_delete(&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 timer_delete(&neigh->t0timer); in rose_start_t0timer()
48 neigh->t0timer.function = rose_t0timer_expiry; in rose_start_t0timer()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c43 struct efx_neigh_binder *neigh = ptr; in efx_neigh_free() local
45 WARN_ON(refcount_read(&neigh->ref)); in efx_neigh_free()
46 WARN_ON(!list_empty(&neigh->users)); in efx_neigh_free()
47 put_net_track(neigh->net, &neigh->ns_tracker); in efx_neigh_free()
48 netdev_put(neigh->egdev, &neigh->dev_tracker); in efx_neigh_free()
49 kfree(neigh); in efx_neigh_free()
90 struct efx_neigh_binder *neigh, *old; in efx_bind_neigh() local
123 neigh = kzalloc_obj(*neigh, GFP_KERNEL_ACCOUNT); in efx_bind_neigh()
124 if (!neigh) in efx_bind_neigh()
126 neigh->net = get_net_track(net, &neigh->ns_tracker, GFP_KERNEL_ACCOUNT); in efx_bind_neigh()
[all …]
/linux/net/mctp/
H A 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_obj(*neigh); 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/net/core/
H A Dneighbour.c110 static int neigh_blackhole(struct neighbour *neigh, struct sk_buff *skb) in neigh_blackhole() argument
116 static void neigh_cleanup_and_release(struct neighbour *neigh) in neigh_cleanup_and_release() argument
118 trace_neigh_cleanup_and_release(neigh, 0); in neigh_cleanup_and_release()
119 neigh_notify(neigh, RTM_DELNEIGH, 0, 0); in neigh_cleanup_and_release()
120 call_netevent_notifiers(NETEVENT_NEIGH_UPDATE, neigh); in neigh_cleanup_and_release()
121 neigh_release(neigh); in neigh_cleanup_and_release()
198 static void neigh_update_flags(struct neighbour *neigh, u32 flags, int *notify, in neigh_update_flags() argument
201 u32 ndm_flags, old_flags = neigh->flags; in neigh_update_flags()
212 neigh->flags |= NTF_EXT_LEARNED; in neigh_update_flags()
214 neigh->flags &= ~NTF_EXT_LEARNED; in neigh_update_flags()
[all …]
/linux/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()
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()
231 if (e->neigh) { in t3_l2e_free()
232 neigh_release(e->neigh); in t3_l2e_free()
233 e->neigh = NULL; in t3_l2e_free()
246 static inline void reuse_entry(struct l2t_entry *e, struct neighbour *neigh) in reuse_entry() argument
[all …]
/linux/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c793 struct ipoib_neigh *neigh, *tn; in path_rec_completion() local
849 list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) { in path_rec_completion()
850 if (neigh->ah) { in path_rec_completion()
851 WARN_ON(neigh->ah != old_ah); in path_rec_completion()
859 ipoib_put_ah(neigh->ah); in path_rec_completion()
862 neigh->ah = path->ah; in path_rec_completion()
864 if (ipoib_cm_enabled(dev, neigh->daddr)) { in path_rec_completion()
865 if (!ipoib_cm_get(neigh)) in path_rec_completion()
866 ipoib_cm_set(neigh, ipoib_cm_create_tx(dev, in path_rec_completion()
868 neigh)); in path_rec_completion()
[all …]
/linux/net/ipv4/
H A Darp.c125 static int arp_constructor(struct neighbour *neigh);
126 static void arp_solicit(struct neighbour *neigh, struct sk_buff *skb);
127 static void arp_error_report(struct neighbour *neigh, struct sk_buff *skb);
219 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument
221 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
224 static int arp_constructor(struct neighbour *neigh) in arp_constructor() argument
227 struct net_device *dev = neigh->dev; in arp_constructor()
233 memcpy(neigh->primary_key, &inaddr_any, arp_tbl.key_len); in arp_constructor()
235 addr = *(__be32 *)neigh->primary_key; in arp_constructor()
243 neigh->type = inet_addr_type_dev_table(dev_net(dev), dev, addr); in arp_constructor()
[all …]
/linux/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()
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/drivers/net/ethernet/marvell/prestera/
H A 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_obj(*neigh); 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/net/ipv6/
H A 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);
325 static int ndisc_constructor(struct neighbour *neigh) in ndisc_constructor() argument
327 struct in6_addr *addr = (struct in6_addr *)&neigh->primary_key; in ndisc_constructor()
328 struct net_device *dev = neigh->dev; in ndisc_constructor()
339 __neigh_parms_put(neigh->parms); in ndisc_constructor()
340 neigh->parms = neigh_parms_clone(parms); in ndisc_constructor()
342 neigh->type = is_multicast ? RTN_MULTICAST : RTN_UNICAST; in ndisc_constructor()
[all …]
/linux/include/net/
H A Dneighbour.h354 void neigh_destroy(struct neighbour *neigh);
355 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb,
357 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
359 void __neigh_set_probe_once(struct neighbour *neigh);
364 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
365 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
366 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
456 static inline void neigh_release(struct neighbour *neigh) in neigh_clone()
458 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_clone()
459 neigh_destroy(neigh);
447 neigh_release(struct neighbour * neigh) neigh_release() argument
453 neigh_clone(struct neighbour * neigh) neigh_clone() argument
462 neigh_event_send_probe(struct neighbour * neigh,struct sk_buff * skb,const bool immediate_ok) neigh_event_send_probe() argument
475 neigh_event_send(struct neighbour * neigh,struct sk_buff * skb) neigh_event_send() argument
594 neigh_update_is_router(struct neighbour * neigh,u32 flags,int * notify) neigh_update_is_router() argument
[all...]
H A Dndisc.h196 struct neighbour *neigh, u8 *ha_buf,
243 struct neighbour *neigh, in ndisc_ops_redirect_opt_addr_space() argument
248 neigh, ha_buf, ha); in ndisc_ops_redirect_opt_addr_space()
319 struct neighbour *neigh, in ndisc_redirect_opt_addr_space() argument
325 ndisc_ops_redirect_opt_addr_space(dev, neigh, ops_data_buf, in ndisc_redirect_opt_addr_space()
409 struct neighbour *neigh; in ip_neigh_gw6() local
411 neigh = __ipv6_neigh_lookup_noref_stub(dev, addr); in ip_neigh_gw6()
412 if (unlikely(!neigh)) in ip_neigh_gw6()
413 neigh = __neigh_create(ipv6_stub->nd_tbl, addr, dev, false); in ip_neigh_gw6()
415 return neigh; in ip_neigh_gw6()
[all …]
/linux/net/atm/
H A Dclip.c90 pr_debug("%p to entry %p (neigh %p)\n", clip_vcc, entry, entry->neigh); in link_vcc()
95 entry->neigh->used = jiffies; in link_vcc()
107 netif_tx_lock_bh(entry->neigh->dev); /* block clip_start_xmit() */ in unlink_clip_vcc()
108 entry->neigh->used = jiffies; in unlink_clip_vcc()
116 netif_wake_queue(entry->neigh->dev); in unlink_clip_vcc()
121 error = neigh_update(entry->neigh, NULL, NUD_NONE, in unlink_clip_vcc()
129 netif_tx_unlock_bh(entry->neigh->dev); in unlink_clip_vcc()
222 skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh->dev : clip_devs; in clip_push()
277 static void clip_neigh_solicit(struct neighbour *neigh, struct sk_buff *skb) in clip_neigh_solicit() argument
279 __be32 *ip = (__be32 *) neigh->primary_key; in clip_neigh_solicit()
[all …]
/linux/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)
39 v6gc3=$(sysctl -n net.ipv6.neigh.default.gc_thresh3 2>/dev/null)
45 sysctl -q net.ipv4.neigh.default.gc_thresh1="$v4gc1" 2>/dev/null
46 sysctl -q net.ipv4.neigh.default.gc_thresh2="$v4gc2" 2>/dev/null
47 sysctl -q net.ipv4.neigh.default.gc_thresh3="$v4gc3" 2>/dev/null
48 sysctl -q net.ipv6.neigh
[all...]
/linux/tools/testing/selftests/net/
H A 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...]
H A Dsrv6_hl2encap_red_l2vpn_test.sh251 local neigh
257 for neigh in ${rt_neighs}; do
258 eval neigh_nsname=\${$(get_rtname "${neigh}")}
260 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
261 type veth peer name "veth-rt-${neigh}-${rt}" \
269 local neigh="$2"
271 local q="${neigh}"
288 local neigh
292 for neigh in ${rt_neighs}; do
293 devname="veth-rt-${rt}-${neigh}"
[all …]
H A Dsrv6_hencap_red_l3vpn_test.sh299 local neigh
305 for neigh in ${rt_neighs}; do
306 eval neigh_nsname=\${$(get_rtname "${neigh}")}
308 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
309 type veth peer name "veth-rt-${neigh}-${rt}" \
317 local neigh="$2"
319 local q="${neigh}"
336 local neigh
340 for neigh in ${rt_neighs}; do
341 devname="veth-rt-${rt}-${neigh}"
[all …]
H A Dsrv6_end_next_csid_l3vpn_test.sh428 local neigh
434 for neigh in ${rt_neighs}; do
435 eval neigh_nsname=\${$(get_rtname "${neigh}")}
437 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
438 type veth peer name "veth-rt-${neigh}-${rt}" \
446 local neigh="$2"
448 local q="${neigh}"
465 local neigh
469 for neigh in ${rt_neighs}; do
470 devname="veth-rt-${rt}-${neigh}"
[all …]
H A Dsrv6_end_x_next_csid_l3vpn_test.sh478 local neigh
484 for neigh in ${rt_neighs}; do
485 eval neigh_nsname=\${$(get_rtname "${neigh}")}
487 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \
488 type veth peer name "veth-rt-${neigh}-${rt}" \
496 local neigh="$2"
498 local q="${neigh}"
515 local neigh
519 for neigh in ${rt_neighs}; do
520 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
/linux/net/batman-adv/
H A Dbat_v_elp.c80 static bool batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh, in batadv_v_elp_get_throughput() argument
83 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_get_throughput()
126 ret = cfg80211_get_station(real_netdev, neigh->addr, &sinfo); in batadv_v_elp_get_throughput()
209 batadv_v_elp_throughput_metric_update(struct batadv_hardif_neigh_node *neigh) in batadv_v_elp_throughput_metric_update() argument
214 valid = batadv_v_elp_get_throughput(neigh, &throughput); in batadv_v_elp_throughput_metric_update()
218 ewma_throughput_add(&neigh->bat_v.throughput, throughput); in batadv_v_elp_throughput_metric_update()
233 batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh) in batadv_v_elp_wifi_neigh_probe() argument
235 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_wifi_neigh_probe()
253 last_tx_diff = jiffies_to_msecs(jiffies - neigh->bat_v.last_unicast_tx); in batadv_v_elp_wifi_neigh_probe()
276 hard_iface->net_dev->name, neigh->addr); in batadv_v_elp_wifi_neigh_probe()
[all …]
/linux/net/6lowpan/
H A Dndisc.c54 struct lowpan_802154_neigh *neigh = lowpan_802154_neigh(neighbour_priv(n)); in lowpan_ndisc_802154_update() local
87 ieee802154_be16_to_le16(&neigh->short_addr, lladdr_short); in lowpan_ndisc_802154_update()
88 if (!lowpan_802154_is_valid_src_short_addr(neigh->short_addr)) in lowpan_ndisc_802154_update()
89 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_ndisc_802154_update()
107 u8 icmp6_type, struct neighbour *neigh, in lowpan_ndisc_opt_addr_space() argument
119 n = lowpan_802154_neigh(neighbour_priv(neigh)); in lowpan_ndisc_opt_addr_space()
121 read_lock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
125 read_unlock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
129 read_unlock_bh(&neigh->lock); in lowpan_ndisc_opt_addr_space()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A 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/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
325 sysctl_set net.ipv6.neigh.default.gc_thresh3 1024
347 sysctl_restore net.ipv6.neigh
[all...]
/linux/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, in
[all...]

12345