/linux-6.1.9/net/rose/ |
D | rose_link.c | 30 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.1.9/net/mctp/ |
D | neigh.c | 29 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.1.9/net/core/ |
D | neighbour.c | 56 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.1.9/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 77 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.1.9/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 752 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 …]
|
D | ipoib.h | 250 struct ipoib_neigh *neigh; member 465 void ipoib_neigh_dtor(struct ipoib_neigh *neigh); 466 static inline void ipoib_neigh_put(struct ipoib_neigh *neigh) in ipoib_neigh_put() argument 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() 644 static inline struct ipoib_cm_tx *ipoib_cm_get(struct ipoib_neigh *neigh) in ipoib_cm_get() argument 646 return neigh->cm; in ipoib_cm_get() [all …]
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 129 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.1.9/net/ipv4/ |
D | arp.c | 124 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.1.9/drivers/net/ethernet/marvell/prestera/ |
D | prestera_router_hw.c | 289 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.1.9/net/ipv6/ |
D | ndisc.c | 75 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); 326 static int ndisc_constructor(struct neighbour *neigh) in ndisc_constructor() argument 328 struct in6_addr *addr = (struct in6_addr *)&neigh->primary_key; in ndisc_constructor() 329 struct net_device *dev = neigh->dev; in ndisc_constructor() 340 __neigh_parms_put(neigh->parms); in ndisc_constructor() 341 neigh->parms = neigh_parms_clone(parms); in ndisc_constructor() 343 neigh->type = is_multicast ? RTN_MULTICAST : RTN_UNICAST; in ndisc_constructor() [all …]
|
/linux-6.1.9/net/batman-adv/ |
D | bat_v_elp.c | 67 static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh) in batadv_v_elp_get_throughput() argument 69 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_get_throughput() 95 ret = cfg80211_get_station(real_netdev, neigh->addr, &sinfo); in batadv_v_elp_get_throughput() 165 struct batadv_hardif_neigh_node *neigh; in batadv_v_elp_throughput_metric_update() local 169 neigh = container_of(neigh_bat_v, struct batadv_hardif_neigh_node, in batadv_v_elp_throughput_metric_update() 172 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update() 173 batadv_v_elp_get_throughput(neigh)); in batadv_v_elp_throughput_metric_update() 178 batadv_hardif_neigh_put(neigh); in batadv_v_elp_throughput_metric_update() 193 batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh) in batadv_v_elp_wifi_neigh_probe() argument 195 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_wifi_neigh_probe() [all …]
|
/linux-6.1.9/include/net/ |
D | neighbour.h | 349 void neigh_destroy(struct neighbour *neigh); 350 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb, 352 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, 354 void __neigh_set_probe_once(struct neighbour *neigh); 359 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb); 360 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb); 361 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb); 446 static inline void neigh_release(struct neighbour *neigh) in neigh_release() argument 448 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release() 449 neigh_destroy(neigh); in neigh_release() [all …]
|
/linux-6.1.9/net/atm/ |
D | clip.c | 78 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.1.9/tools/testing/selftests/netfilter/ |
D | nft_nat_zones.sh | 40 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.1.9/net/6lowpan/ |
D | ndisc.c | 60 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.1.9/drivers/net/ethernet/netronome/nfp/flower/ |
D | tunnel_conf.c | 306 struct nfp_neigh_entry *neigh) in nfp_tun_mutual_link() argument 312 if (flow_pay->pre_tun_rule.is_ipv6 != neigh->is_ipv6) in nfp_tun_mutual_link() 319 if (neigh->flow) in nfp_tun_mutual_link() 322 common = neigh->is_ipv6 ? in nfp_tun_mutual_link() 323 &((struct nfp_tun_neigh_v6 *)neigh->payload)->common : in nfp_tun_mutual_link() 324 &((struct nfp_tun_neigh_v4 *)neigh->payload)->common; in nfp_tun_mutual_link() 325 ext = neigh->is_ipv6 ? in nfp_tun_mutual_link() 326 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext : in nfp_tun_mutual_link() 327 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext; in nfp_tun_mutual_link() 335 list_add(&neigh->list_head, &predt->nn_list); in nfp_tun_mutual_link() [all …]
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | srv6_hencap_red_l3vpn_test.sh | 333 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 …]
|
D | srv6_hl2encap_red_l2vpn_test.sh | 284 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 …]
|
D | srv6_end_next_csid_l3vpn_test.sh | 461 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 …]
|
D | arp_ndisc_evict_nocarrier.sh | 61 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.1.9/tools/testing/selftests/net/forwarding/ |
D | custom_multipath_hash.sh | 288 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 …]
|
D | gre_custom_multipath_hash.sh | 381 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 414 sysctl_set net.ipv6.neigh.default.gc_thresh3 1024 436 sysctl_restore net.ipv6.neigh.default.gc_thresh3 [all …]
|
D | ip6gre_custom_multipath_hash.sh | 383 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 416 sysctl_set net.ipv6.neigh.default.gc_thresh3 1024 438 sysctl_restore net.ipv6.neigh.default.gc_thresh3 [all …]
|
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/ |
D | rtnetlink.sh | 565 ip -4 neigh add 192.0.2.2 lladdr de:ad:be:ef:13:37 nud perm dev $swp1 566 ip -6 neigh add 2001:db8:1::2 lladdr de:ad:be:ef:13:37 nud perm \ 570 ip -4 neigh show dev $swp1 192.0.2.2 573 ip -6 neigh show dev $swp1 2001:db8:1::2 578 ip -6 neigh del 2001:db8:1::2 dev $swp1 579 ip -4 neigh del 192.0.2.2 dev $swp1 692 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \ 699 ip neigh replace 192.0.2.2 nud failed dev $swp1 704 ip neigh replace 192.0.2.2 lladdr 00:11:22:33:44:55 nud perm \ 722 ip neigh del 192.0.2.2 dev $swp1 [all …]
|
/linux-6.1.9/include/trace/events/ |
D | neigh.h | 2 #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 …]
|