Searched refs:neigh (Results 1 - 25 of 116) sorted by relevance

12345

/linux-master/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) argument
35 del_timer(&neigh->ftimer);
37 neigh->ftimer.function = rose_ftimer_expiry;
38 neigh->ftimer.expires =
41 add_timer(&neigh->ftimer);
44 static void rose_start_t0timer(struct rose_neigh *neigh) argument
46 del_timer(&neigh->t0timer);
48 neigh
55 rose_stop_ftimer(struct rose_neigh *neigh) argument
60 rose_stop_t0timer(struct rose_neigh *neigh) argument
65 rose_ftimer_running(struct rose_neigh *neigh) argument
70 rose_t0timer_running(struct rose_neigh *neigh) argument
81 struct rose_neigh *neigh = from_timer(neigh, t, t0timer); local
95 rose_send_frame(struct sk_buff *skb, struct rose_neigh *neigh) argument
118 rose_link_up(struct rose_neigh *neigh) argument
139 rose_link_rx_restart(struct sk_buff *skb, struct rose_neigh *neigh, unsigned short frametype) argument
176 rose_transmit_restart_request(struct rose_neigh *neigh) argument
205 rose_transmit_restart_confirmation(struct rose_neigh *neigh) argument
233 rose_transmit_clear_request(struct rose_neigh *neigh, unsigned int lci, unsigned char cause, unsigned char diagnostic) argument
262 rose_transmit_link(struct sk_buff *skb, struct rose_neigh *neigh) argument
[all...]
/linux-master/net/mctp/
H A Dneigh.c29 struct mctp_neigh *neigh; local
38 if (lladdr_len > sizeof(neigh->ha)) {
43 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL);
44 if (!neigh) {
48 INIT_LIST_HEAD(&neigh->list);
49 neigh->dev = mdev;
50 mctp_dev_hold(neigh->dev);
51 neigh->eid = eid;
52 neigh
64 struct mctp_neigh *neigh = container_of(rcu, struct mctp_neigh, rcu); local
74 struct mctp_neigh *neigh, *tmp; local
92 struct mctp_neigh *neigh, *tmp; local
209 mctp_fill_neigh(struct sk_buff *skb, u32 portid, u32 seq, int event, unsigned int flags, struct mctp_neigh *neigh) argument
247 struct mctp_neigh *neigh; local
282 struct mctp_neigh *neigh; local
312 struct mctp_neigh *neigh; local
[all...]
H A DMakefile3 mctp-objs := af_mctp.o device.o route.o neigh.o
/linux-master/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c41 struct efx_neigh_binder *neigh = ptr; local
43 WARN_ON(refcount_read(&neigh->ref));
44 WARN_ON(!list_empty(&neigh->users));
45 put_net_track(neigh->net, &neigh->ns_tracker);
46 netdev_put(neigh->egdev, &neigh->dev_tracker);
47 kfree(neigh);
88 struct efx_neigh_binder *neigh, *old; local
121 neigh
223 efx_free_neigh(struct efx_neigh_binder *neigh) argument
238 struct efx_neigh_binder *neigh = encap->neigh; local
251 struct efx_neigh_binder *neigh = encap->neigh; local
267 struct efx_neigh_binder *neigh = encap->neigh; local
287 struct efx_neigh_binder *neigh = encap->neigh; local
506 struct efx_neigh_binder *neigh = container_of(work, struct efx_neigh_binder, work); local
521 struct efx_neigh_binder keys = {NULL}, *neigh; local
703 efx_tc_remove_neigh_users(struct efx_nic *efx, struct efx_neigh_binder *neigh) argument
717 struct efx_neigh_binder *neigh; local
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb3/
H A Dl2t.c77 if (e->neigh)
78 neigh_release(e->neigh);
79 e->neigh = n;
105 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac));
134 neigh_event_send(e->neigh, NULL);
160 if (!neigh_event_send(e->neigh, NULL)) {
184 neigh_event_send(e->neigh, NULL);
210 neigh_event_send(e->neigh, NULL);
268 if (e->neigh) {
269 neigh_release(e->neigh);
283 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) argument
306 struct neighbour *neigh; local
399 t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh) argument
[all...]
/linux-master/net/core/
H A Dneighbour.c42 #include <trace/events/neigh.h>
56 static void neigh_update_notify(struct neighbour *neigh, u32 nlmsg_pid);
77 - with rwlock neigh->lock
81 neigh->lock mainly serializes ll address data and its validity state.
86 Again, nothing clever shall be made under neigh->lock,
92 static int neigh_blackhole(struct neighbour *neigh, struct sk_buff *skb) argument
98 static void neigh_cleanup_and_release(struct neighbour *neigh) argument
100 trace_neigh_cleanup_and_release(neigh, 0);
101 __neigh_notify(neigh, RTM_DELNEIGH, 0, 0);
102 call_netevent_notifiers(NETEVENT_NEIGH_UPDATE, neigh);
179 neigh_update_flags(struct neighbour *neigh, u32 flags, int *notify, bool *gc_update, bool *managed_update) argument
215 struct neighbour *neigh; local
889 neigh_destroy(struct neighbour *neigh) argument
927 neigh_suspect(struct neighbour *neigh) argument
939 neigh_connect(struct neighbour *neigh) argument
1085 struct neighbour *neigh = from_timer(neigh, t, timer); local
1171 __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb, const bool immediate_ok) argument
1259 neigh_update_hhs(struct neighbour *neigh) argument
1297 __neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u32 nlmsg_pid, struct netlink_ext_ack *extack) argument
1485 neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u32 nlmsg_pid) argument
1495 __neigh_set_probe_once(struct neighbour *neigh) argument
1514 struct neighbour *neigh = __neigh_lookup(tbl, saddr, dev, local
1543 neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb) argument
1578 neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb) argument
1601 neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb) argument
1611 struct neighbour *neigh; local
1901 struct neighbour *neigh; local
1969 struct neighbour *neigh; local
2562 neigh_fill_info(struct sk_buff *skb, struct neighbour *neigh, u32 pid, u32 seq, int type, unsigned int flags) argument
2664 neigh_update_notify(struct neighbour *neigh, u32 nlmsg_pid) argument
2974 neigh_get_reply(struct net *net, struct neighbour *neigh, u32 pid, u32 seq) argument
3003 pneigh_get_reply(struct net *net, struct pneigh_entry *neigh, u32 pid, u32 seq, struct neigh_table *tbl) argument
3030 struct neighbour *neigh; local
3148 struct neighbour *neigh; local
[all...]
/linux-master/include/net/
H A Dnetevent.h22 struct neighbour *neigh; member in struct:netevent_redirect
H A Dneighbour.h347 void neigh_destroy(struct neighbour *neigh);
348 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb,
350 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
352 void __neigh_set_probe_once(struct neighbour *neigh);
357 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
358 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
359 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
442 static inline void neigh_release(struct neighbour *neigh) argument
444 if (refcount_dec_and_test(&neigh->refcnt))
445 neigh_destroy(neigh);
448 neigh_clone(struct neighbour *neigh) argument
457 neigh_event_send_probe(struct neighbour *neigh, struct sk_buff *skb, const bool immediate_ok) argument
470 neigh_event_send(struct neighbour *neigh, struct sk_buff *skb) argument
589 neigh_update_is_router(struct neighbour *neigh, u32 flags, int *notify) argument
[all...]
/linux-master/net/6lowpan/
H A Dndisc.c60 struct lowpan_802154_neigh *neigh = lowpan_802154_neigh(neighbour_priv(n)); local
95 ieee802154_be16_to_le16(&neigh->short_addr, lladdr_short);
96 if (!lowpan_802154_is_valid_src_short_addr(neigh->short_addr))
97 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC);
115 u8 icmp6_type, struct neighbour *neigh,
127 n = lowpan_802154_neigh(neighbour_priv(neigh));
129 read_lock_bh(&neigh->lock);
133 read_unlock_bh(&neigh->lock);
137 read_unlock_bh(&neigh->lock);
114 lowpan_ndisc_opt_addr_space(const struct net_device *dev, u8 icmp6_type, struct neighbour *neigh, u8 *ha_buf, u8 **ha) argument
/linux-master/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c620 /* remove all neigh connected to this path */
752 struct ipoib_neigh *neigh, *tn; local
808 list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) {
809 if (neigh->ah) {
810 WARN_ON(neigh->ah != old_ah);
818 ipoib_put_ah(neigh->ah);
821 neigh->ah = path->ah;
823 if (ipoib_cm_enabled(dev, neigh->daddr)) {
824 if (!ipoib_cm_get(neigh))
825 ipoib_cm_set(neigh, ipoib_cm_create_t
930 neigh_refresh_path(struct ipoib_neigh *neigh, u8 *daddr, struct net_device *dev) argument
954 struct ipoib_neigh *neigh; local
1100 struct ipoib_neigh *neigh; local
1302 struct ipoib_neigh *neigh = NULL; local
1358 struct ipoib_neigh *neigh; local
1401 struct ipoib_neigh *neigh; local
1424 struct ipoib_neigh *neigh; local
1474 ipoib_neigh_dtor(struct ipoib_neigh *neigh) argument
1502 struct ipoib_neigh *neigh = container_of(rp, struct ipoib_neigh, rcu); local
1507 ipoib_neigh_free(struct ipoib_neigh *neigh) argument
1607 struct ipoib_neigh *neigh; local
1652 struct ipoib_neigh *neigh; local
[all...]
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c289 struct prestera_nh_neigh *neigh)
292 &neigh->ht_node,
294 kfree(neigh);
301 struct prestera_nh_neigh *neigh; local
304 neigh = kzalloc(sizeof(*neigh), GFP_KERNEL);
305 if (!neigh)
308 memcpy(&neigh->key, key, sizeof(*key));
309 neigh->info.connected = false;
310 INIT_LIST_HEAD(&neigh
288 __prestera_nh_neigh_destroy(struct prestera_switch *sw, struct prestera_nh_neigh *neigh) argument
340 struct prestera_nh_neigh *neigh; local
349 prestera_nh_neigh_put(struct prestera_switch *sw, struct prestera_nh_neigh *neigh) argument
357 prestera_nh_neigh_set(struct prestera_switch *sw, struct prestera_nh_neigh *neigh) argument
522 struct prestera_nh_neigh *neigh; local
[all...]
H A Dprestera_router_hw.h62 /* Used to notify nh about neigh change */
74 struct prestera_nh_neigh_key neigh[PRESTERA_NHGR_SIZE_MAX]; member in struct:prestera_nexthop_group::prestera_nexthop_group_key
83 /* ptr to neigh is not necessary.
86 struct prestera_nh_neigh *neigh; member in struct:prestera_nexthop_group::prestera_nh_neigh_head
138 struct prestera_nh_neigh *neigh);
140 struct prestera_nh_neigh *neigh);
/linux-master/net/ipv4/
H A Darp.c124 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) argument
220 return neigh_key_eq32(neigh, pkey);
223 static int arp_constructor(struct neighbour *neigh) argument
226 struct net_device *dev = neigh->dev;
232 memcpy(neigh->primary_key, &inaddr_any, arp_tbl.key_len);
234 addr = *(__be32 *)neigh->primary_key;
242 neigh
294 arp_error_report(struct neighbour *neigh, struct sk_buff *skb) argument
333 arp_solicit(struct neighbour *neigh, struct sk_buff *skb) argument
1049 struct neighbour *neigh; local
1104 arp_state_to_flags(struct neighbour *neigh) argument
1121 struct neighbour *neigh; local
1143 struct neighbour *neigh = neigh_lookup(&arp_tbl, &ip, dev); local
[all...]
/linux-master/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);
327 static int ndisc_constructor(struct neighbour *neigh) argument
329 struct in6_addr *addr = (struct in6_addr *)&neigh->primary_key;
330 struct net_device *dev = neigh->dev;
341 __neigh_parms_put(neigh->parms);
342 neigh->parms = neigh_parms_clone(parms);
344 neigh
723 ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb) argument
735 ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb) argument
778 ndisc_update(const struct net_device *dev, struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u8 icmp6_type, struct ndisc_options *ndopts) argument
799 struct neighbour *neigh; local
1004 struct neighbour *neigh; local
1136 struct neighbour *neigh; local
1238 struct neighbour *neigh = NULL; local
1740 struct neighbour *neigh = dst_neigh_lookup(skb_dst(skb), target); local
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dl2t.c129 if (e->neigh)
130 neigh_release(e->neigh);
131 e->neigh = n;
158 if (e->neigh && !(e->neigh->dev->flags & IFF_LOOPBACK))
159 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac));
205 e->state = (e->neigh->nud_state & NUD_STALE) ?
229 neigh_event_send(e->neigh, NULL);
249 !neigh_event_send(e->neigh, NULL)) {
356 if (e->neigh) {
397 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) argument
415 cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, const struct net_device *physdev, unsigned int priority) argument
509 t4_l2t_update(struct adapter *adap, struct neighbour *neigh) argument
[all...]
H A Dl2t.h78 struct neighbour *neigh; /* associated neighbour */ member in struct:l2t_entry
113 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh,
120 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh);
/linux-master/tools/testing/selftests/net/forwarding/
H A Dethtool_rmon.sh32 local neigh=$1; shift
52 $MZ $neigh -q -c $num_rx -p $len -a own -b bcast -d 10us
69 local neigh=$1; shift
79 for if in $iface $neigh; do
86 if ! bucket_test $iface $neigh $set $nbuckets ${bucket[0]}; then
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-master/tools/testing/selftests/netfilter/
H 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)
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
[all...]
/linux-master/tools/testing/selftests/net/
H A Dsrv6_hencap_red_l3vpn_test.sh333 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...]
H A Dsrv6_hl2encap_red_l2vpn_test.sh284 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...]
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 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-master/net/batman-adv/
H A Dbat_v_elp.c61 * @neigh: the neighbour for which the throughput has to be obtained
66 static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh) argument
68 struct batadv_hard_iface *hard_iface = neigh->if_incoming;
94 ret = cfg80211_get_station(real_netdev, neigh->addr, &sinfo);
164 struct batadv_hardif_neigh_node *neigh; local
168 neigh = container_of(neigh_bat_v, struct batadv_hardif_neigh_node,
171 ewma_throughput_add(&neigh->bat_v.throughput,
172 batadv_v_elp_get_throughput(neigh));
177 batadv_hardif_neigh_put(neigh);
182 * @neigh
192 batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh) argument
453 struct batadv_neigh_node *neigh; local
[all...]
/linux-master/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...]

Completed in 506 milliseconds

12345