Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-5.10/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 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 in rose_start_t0timer()
55 rose_stop_ftimer(struct rose_neigh *neigh) rose_stop_ftimer() argument
60 rose_stop_t0timer(struct rose_neigh *neigh) rose_stop_t0timer() argument
65 rose_ftimer_running(struct rose_neigh *neigh) rose_ftimer_running() argument
70 rose_t0timer_running(struct rose_neigh *neigh) rose_t0timer_running() argument
81 struct rose_neigh *neigh = from_timer(neigh, t, t0timer); rose_t0timer_expiry() local
95 rose_send_frame(struct sk_buff *skb, struct rose_neigh *neigh) rose_send_frame() argument
118 rose_link_up(struct rose_neigh *neigh) rose_link_up() argument
139 rose_link_rx_restart(struct sk_buff *skb, struct rose_neigh *neigh, unsigned short frametype) rose_link_rx_restart() argument
176 rose_transmit_restart_request(struct rose_neigh *neigh) rose_transmit_restart_request() argument
205 rose_transmit_restart_confirmation(struct rose_neigh *neigh) rose_transmit_restart_confirmation() argument
233 rose_transmit_clear_request(struct rose_neigh *neigh, unsigned int lci, unsigned char cause, unsigned char diagnostic) rose_transmit_clear_request() argument
262 rose_transmit_link(struct sk_buff *skb, struct rose_neigh *neigh) rose_transmit_link() argument
[all...]
/kernel/linux/linux-6.6/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 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 in rose_start_t0timer()
55 rose_stop_ftimer(struct rose_neigh *neigh) rose_stop_ftimer() argument
60 rose_stop_t0timer(struct rose_neigh *neigh) rose_stop_t0timer() argument
65 rose_ftimer_running(struct rose_neigh *neigh) rose_ftimer_running() argument
70 rose_t0timer_running(struct rose_neigh *neigh) rose_t0timer_running() argument
81 struct rose_neigh *neigh = from_timer(neigh, t, t0timer); rose_t0timer_expiry() local
95 rose_send_frame(struct sk_buff *skb, struct rose_neigh *neigh) rose_send_frame() argument
118 rose_link_up(struct rose_neigh *neigh) rose_link_up() argument
139 rose_link_rx_restart(struct sk_buff *skb, struct rose_neigh *neigh, unsigned short frametype) rose_link_rx_restart() argument
176 rose_transmit_restart_request(struct rose_neigh *neigh) rose_transmit_restart_request() argument
205 rose_transmit_restart_confirmation(struct rose_neigh *neigh) rose_transmit_restart_confirmation() argument
233 rose_transmit_clear_request(struct rose_neigh *neigh, unsigned int lci, unsigned char cause, unsigned char diagnostic) rose_transmit_clear_request() argument
262 rose_transmit_link(struct sk_buff *skb, struct rose_neigh *neigh) rose_transmit_link() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c41 struct efx_neigh_binder *neigh = ptr; in efx_neigh_free() local
43 WARN_ON(refcount_read(&neigh->ref)); in efx_neigh_free()
44 WARN_ON(!list_empty(&neigh->users)); in efx_neigh_free()
45 put_net_track(neigh->net, &neigh->ns_tracker); in efx_neigh_free()
46 netdev_put(neigh->egdev, &neigh->dev_tracker); in efx_neigh_free()
47 kfree(neigh); in efx_neigh_free()
88 struct efx_neigh_binder *neigh, *old; in efx_bind_neigh() local
121 neigh in efx_bind_neigh()
223 efx_free_neigh(struct efx_neigh_binder *neigh) efx_free_neigh() argument
238 struct efx_neigh_binder *neigh = encap->neigh; efx_release_neigh() local
251 struct efx_neigh_binder *neigh = encap->neigh; efx_gen_tun_header_eth() local
267 struct efx_neigh_binder *neigh = encap->neigh; efx_gen_tun_header_ipv4() local
287 struct efx_neigh_binder *neigh = encap->neigh; efx_gen_tun_header_ipv6() local
506 struct efx_neigh_binder *neigh = container_of(work, struct efx_neigh_binder, work); efx_neigh_update() local
521 struct efx_neigh_binder keys = {NULL}, *neigh; efx_neigh_event() local
703 efx_tc_remove_neigh_users(struct efx_nic *efx, struct efx_neigh_binder *neigh) efx_tc_remove_neigh_users() argument
717 struct efx_neigh_binder *neigh; efx_tc_unregister_egdev() local
[all...]
/kernel/linux/linux-6.6/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(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 in mctp_neigh_add()
64 struct mctp_neigh *neigh = container_of(rcu, struct mctp_neigh, rcu); __mctp_neigh_free() local
74 struct mctp_neigh *neigh, *tmp; mctp_neigh_remove_dev() local
92 struct mctp_neigh *neigh, *tmp; mctp_neigh_remove() local
209 mctp_fill_neigh(struct sk_buff *skb, u32 portid, u32 seq, int event, unsigned int flags, struct mctp_neigh *neigh) mctp_fill_neigh() argument
247 struct mctp_neigh *neigh; mctp_rtm_getneigh() local
282 struct mctp_neigh *neigh; mctp_neigh_lookup() local
312 struct mctp_neigh *neigh; mctp_neigh_net_exit() local
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dneighbour.c42 #include <trace/events/neigh.h>
57 static void neigh_update_notify(struct neighbour *neigh, u32 nlmsg_pid);
78 - with rwlock neigh->lock
82 neigh->lock mainly serializes ll address data and its validity state.
87 Again, nothing clever shall be made under neigh->lock,
93 static int neigh_blackhole(struct neighbour *neigh, struct sk_buff *skb) in neigh_blackhole() argument
99 static void neigh_cleanup_and_release(struct neighbour *neigh) in neigh_cleanup_and_release() argument
101 trace_neigh_cleanup_and_release(neigh, 0); in neigh_cleanup_and_release()
102 __neigh_notify(neigh, RTM_DELNEIGH, 0, 0); in neigh_cleanup_and_release()
103 call_netevent_notifiers(NETEVENT_NEIGH_UPDATE, neigh); in neigh_cleanup_and_release()
159 neigh_update_ext_learned(struct neighbour *neigh, u32 flags, int *notify) neigh_update_ext_learned() argument
188 struct neighbour *neigh; neigh_del() local
836 neigh_destroy(struct neighbour *neigh) neigh_destroy() argument
874 neigh_suspect(struct neighbour *neigh) neigh_suspect() argument
886 neigh_connect(struct neighbour *neigh) neigh_connect() argument
1032 struct neighbour *neigh = from_timer(neigh, t, timer); neigh_timer_handler() local
1118 __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb) __neigh_event_send() argument
1200 neigh_update_hhs(struct neighbour *neigh) neigh_update_hhs() argument
1240 __neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u32 nlmsg_pid, struct netlink_ext_ack *extack) __neigh_update() argument
1431 neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u32 nlmsg_pid) neigh_update() argument
1441 __neigh_set_probe_once(struct neighbour *neigh) __neigh_set_probe_once() argument
1460 struct neighbour *neigh = __neigh_lookup(tbl, saddr, dev, neigh_event_ns() local
1489 neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb) neigh_resolve_output() argument
1524 neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb) neigh_connected_output() argument
1547 neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb) neigh_direct_output() argument
1818 struct neighbour *neigh; neigh_delete() local
1886 struct neighbour *neigh; neigh_add() local
2450 neigh_fill_info(struct sk_buff *skb, struct neighbour *neigh, u32 pid, u32 seq, int type, unsigned int flags) neigh_fill_info() argument
2540 neigh_update_notify(struct neighbour *neigh, u32 nlmsg_pid) neigh_update_notify() argument
2842 neigh_get_reply(struct net *net, struct neighbour *neigh, u32 pid, u32 seq) neigh_get_reply() argument
2870 pneigh_get_reply(struct net *net, struct pneigh_entry *neigh, u32 pid, u32 seq, struct neigh_table *tbl) pneigh_get_reply() argument
2897 struct neighbour *neigh; neigh_get() local
3015 struct neighbour *neigh; neigh_xmit() local
[all...]
/kernel/linux/linux-5.10/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()
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()
283 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) reuse_entry() argument
306 struct neighbour *neigh; t3_l2t_get() local
399 t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh) t3_l2t_update() argument
[all...]
/kernel/linux/linux-6.6/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()
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()
283 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) reuse_entry() argument
306 struct neighbour *neigh; t3_l2t_get() local
399 t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh) t3_l2t_update() argument
[all...]
/kernel/linux/linux-6.6/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) 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()
179 neigh_update_flags(struct neighbour *neigh, u32 flags, int *notify, bool *gc_update, bool *managed_update) neigh_update_flags() argument
215 struct neighbour *neigh; neigh_del() local
889 neigh_destroy(struct neighbour *neigh) neigh_destroy() argument
927 neigh_suspect(struct neighbour *neigh) neigh_suspect() argument
939 neigh_connect(struct neighbour *neigh) neigh_connect() argument
1085 struct neighbour *neigh = from_timer(neigh, t, timer); neigh_timer_handler() local
1171 __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb, const bool immediate_ok) __neigh_event_send() argument
1259 neigh_update_hhs(struct neighbour *neigh) neigh_update_hhs() argument
1297 __neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u32 nlmsg_pid, struct netlink_ext_ack *extack) __neigh_update() argument
1485 neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u32 nlmsg_pid) neigh_update() argument
1495 __neigh_set_probe_once(struct neighbour *neigh) __neigh_set_probe_once() argument
1514 struct neighbour *neigh = __neigh_lookup(tbl, saddr, dev, neigh_event_ns() local
1543 neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb) neigh_resolve_output() argument
1578 neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb) neigh_connected_output() argument
1601 neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb) neigh_direct_output() argument
1611 struct neighbour *neigh; neigh_managed_work() local
1901 struct neighbour *neigh; neigh_delete() local
1969 struct neighbour *neigh; neigh_add() local
2562 neigh_fill_info(struct sk_buff *skb, struct neighbour *neigh, u32 pid, u32 seq, int type, unsigned int flags) neigh_fill_info() argument
2664 neigh_update_notify(struct neighbour *neigh, u32 nlmsg_pid) neigh_update_notify() argument
2974 neigh_get_reply(struct net *net, struct neighbour *neigh, u32 pid, u32 seq) neigh_get_reply() argument
3003 pneigh_get_reply(struct net *net, struct pneigh_entry *neigh, u32 pid, u32 seq, struct neigh_table *tbl) pneigh_get_reply() argument
3030 struct neighbour *neigh; neigh_get() local
3148 struct neighbour *neigh; neigh_xmit() local
[all...]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Dnndisc.c78 static void nndisc_solicit(struct neighbour *neigh, struct sk_buff *skb);
82 static bool nndisc_key_eq(const struct neighbour *neigh, const void *pkey);
83 static int nndisc_constructor(struct neighbour *neigh);
85 static void nndisc_error_report(struct neighbour *neigh, struct sk_buff *skb) in nndisc_error_report() argument
90 static void nndisc_generic_error_report(struct neighbour *neigh, struct sk_buff *skb) in nndisc_generic_error_report() argument
176 static bool nndisc_key_eq(const struct neighbour *neigh, const void *pkey) in nndisc_key_eq() argument
178 return neigh_key_eq800(neigh, pkey); in nndisc_key_eq()
181 static int nndisc_constructor(struct neighbour *neigh) in nndisc_constructor() argument
183 struct nip_addr *addr = (struct nip_addr *)&neigh->primary_key; in nndisc_constructor()
184 struct net_device *dev = neigh in nndisc_constructor()
406 nndisc_solicit(struct neighbour *neigh, struct sk_buff *skb) nndisc_solicit() argument
518 struct neighbour *neigh; nndisc_rcv_ns() local
581 struct neighbour *neigh; nndisc_rcv_na() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c616 /* remove all neigh connected to this path */ in path_free()
748 struct ipoib_neigh *neigh, *tn; in path_rec_completion() local
804 list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) { in path_rec_completion()
805 if (neigh->ah) { in path_rec_completion()
806 WARN_ON(neigh->ah != old_ah); in path_rec_completion()
814 ipoib_put_ah(neigh->ah); in path_rec_completion()
817 neigh->ah = path->ah; in path_rec_completion()
819 if (ipoib_cm_enabled(dev, neigh->daddr)) { in path_rec_completion()
820 if (!ipoib_cm_get(neigh)) in path_rec_completion()
821 ipoib_cm_set(neigh, ipoib_cm_create_t in path_rec_completion()
926 neigh_refresh_path(struct ipoib_neigh *neigh, u8 *daddr, struct net_device *dev) neigh_refresh_path() argument
950 struct ipoib_neigh *neigh; neigh_add_path() local
1096 struct ipoib_neigh *neigh; ipoib_start_xmit() local
1266 struct ipoib_neigh *neigh = NULL; ipoib_neigh_get() local
1322 struct ipoib_neigh *neigh; __ipoib_reap_neigh() local
1365 struct ipoib_neigh *neigh; ipoib_neigh_ctor() local
1388 struct ipoib_neigh *neigh; ipoib_neigh_alloc() local
1438 ipoib_neigh_dtor(struct ipoib_neigh *neigh) ipoib_neigh_dtor() argument
1466 struct ipoib_neigh *neigh = container_of(rp, struct ipoib_neigh, rcu); ipoib_neigh_reclaim() local
1471 ipoib_neigh_free(struct ipoib_neigh *neigh) ipoib_neigh_free() argument
1571 struct ipoib_neigh *neigh; ipoib_del_neighs_by_gid() local
1616 struct ipoib_neigh *neigh; ipoib_flush_neighs() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c620 /* remove all neigh connected to this path */ in path_free()
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_t in path_rec_completion()
930 neigh_refresh_path(struct ipoib_neigh *neigh, u8 *daddr, struct net_device *dev) neigh_refresh_path() argument
954 struct ipoib_neigh *neigh; neigh_add_path() local
1100 struct ipoib_neigh *neigh; ipoib_start_xmit() local
1275 struct ipoib_neigh *neigh = NULL; ipoib_neigh_get() local
1331 struct ipoib_neigh *neigh; __ipoib_reap_neigh() local
1374 struct ipoib_neigh *neigh; ipoib_neigh_ctor() local
1397 struct ipoib_neigh *neigh; ipoib_neigh_alloc() local
1447 ipoib_neigh_dtor(struct ipoib_neigh *neigh) ipoib_neigh_dtor() argument
1475 struct ipoib_neigh *neigh = container_of(rp, struct ipoib_neigh, rcu); ipoib_neigh_reclaim() local
1480 ipoib_neigh_free(struct ipoib_neigh *neigh) ipoib_neigh_free() argument
1580 struct ipoib_neigh *neigh; ipoib_del_neighs_by_gid() local
1625 struct ipoib_neigh *neigh; ipoib_flush_neighs() local
[all...]
/kernel/linux/linux-5.10/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);
217 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument
219 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
222 static int arp_constructor(struct neighbour *neigh) in arp_constructor() argument
225 struct net_device *dev = neigh->dev; in arp_constructor()
231 memcpy(neigh->primary_key, &inaddr_any, arp_tbl.key_len); in arp_constructor()
233 addr = *(__be32 *)neigh->primary_key; in arp_constructor()
241 neigh in arp_constructor()
293 arp_error_report(struct neighbour *neigh, struct sk_buff *skb) arp_error_report() argument
332 arp_solicit(struct neighbour *neigh, struct sk_buff *skb) arp_solicit() argument
1028 struct neighbour *neigh; arp_req_set() local
1083 arp_state_to_flags(struct neighbour *neigh) arp_state_to_flags() argument
1100 struct neighbour *neigh; arp_req_get() local
1122 struct neighbour *neigh = neigh_lookup(&arp_tbl, &ip, dev); arp_invalidate() local
[all...]
/kernel/linux/linux-6.6/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) 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 in arp_constructor()
294 arp_error_report(struct neighbour *neigh, struct sk_buff *skb) arp_error_report() argument
333 arp_solicit(struct neighbour *neigh, struct sk_buff *skb) arp_solicit() argument
1049 struct neighbour *neigh; arp_req_set() local
1104 arp_state_to_flags(struct neighbour *neigh) arp_state_to_flags() argument
1121 struct neighbour *neigh; arp_req_get() local
1143 struct neighbour *neigh = neigh_lookup(&arp_tbl, &ip, dev); arp_invalidate() local
[all...]
/kernel/linux/linux-5.10/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()
397 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) reuse_entry() argument
415 cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, const struct net_device *physdev, unsigned int priority) cxgb4_l2t_get() argument
509 t4_l2t_update(struct adapter *adap, struct neighbour *neigh) t4_l2t_update() argument
[all...]
/kernel/linux/linux-6.6/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()
397 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) reuse_entry() argument
415 cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, const struct net_device *physdev, unsigned int priority) cxgb4_l2t_get() argument
509 t4_l2t_update(struct adapter *adap, struct neighbour *neigh) t4_l2t_update() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c289 struct prestera_nh_neigh *neigh) in __prestera_nh_neigh_destroy()
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 in __prestera_nh_neigh_create()
288 __prestera_nh_neigh_destroy(struct prestera_switch *sw, struct prestera_nh_neigh *neigh) __prestera_nh_neigh_destroy() argument
340 struct prestera_nh_neigh *neigh; prestera_nh_neigh_get() local
349 prestera_nh_neigh_put(struct prestera_switch *sw, struct prestera_nh_neigh *neigh) prestera_nh_neigh_put() argument
357 prestera_nh_neigh_set(struct prestera_switch *sw, struct prestera_nh_neigh *neigh) prestera_nh_neigh_set() argument
522 struct prestera_nh_neigh *neigh; prestera_nexthop_group_set() local
[all...]
/kernel/linux/linux-6.6/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) in ndisc_constructor() argument
329 struct in6_addr *addr = (struct in6_addr *)&neigh->primary_key; in ndisc_constructor()
330 struct net_device *dev = neigh->dev; in ndisc_constructor()
341 __neigh_parms_put(neigh->parms); in ndisc_constructor()
342 neigh->parms = neigh_parms_clone(parms); in ndisc_constructor()
344 neigh in ndisc_constructor()
723 ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb) ndisc_error_report() argument
735 ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb) ndisc_solicit() 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) ndisc_update() argument
799 struct neighbour *neigh; ndisc_recv_ns() local
1003 struct neighbour *neigh; ndisc_recv_na() local
1134 struct neighbour *neigh; ndisc_recv_rs() local
1236 struct neighbour *neigh = NULL; ndisc_router_discovery() local
1726 struct neighbour *neigh = dst_neigh_lookup(skb_dst(skb), target); ndisc_send_redirect() local
[all...]
/kernel/linux/linux-5.10/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);
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 in ndisc_constructor()
707 ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb) ndisc_error_report() argument
719 ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb) ndisc_solicit() argument
762 ndisc_update(const struct net_device *dev, struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags, u8 icmp6_type, struct ndisc_options *ndopts) ndisc_update() argument
783 struct neighbour *neigh; ndisc_recv_ns() local
967 struct neighbour *neigh; ndisc_recv_na() local
1073 struct neighbour *neigh; ndisc_recv_rs() local
1174 struct neighbour *neigh = NULL; ndisc_router_discovery() local
1653 struct neighbour *neigh = dst_neigh_lookup(skb_dst(skb), target); ndisc_send_redirect() local
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dneighbour.h323 void neigh_destroy(struct neighbour *neigh);
324 int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb);
325 int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, u32 flags,
327 void __neigh_set_probe_once(struct neighbour *neigh);
332 int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb);
333 int neigh_connected_output(struct neighbour *neigh, struct sk_buff *skb);
334 int neigh_direct_output(struct neighbour *neigh, struct sk_buff *skb);
419 static inline void neigh_release(struct neighbour *neigh) in neigh_release() argument
421 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
422 neigh_destroy(neigh); in neigh_release()
425 neigh_clone(struct neighbour *neigh) neigh_clone() argument
434 neigh_event_send(struct neighbour *neigh, struct sk_buff *skb) neigh_event_send() argument
559 neigh_update_is_router(struct neighbour *neigh, u32 flags, int *notify) neigh_update_is_router() argument
[all...]
/kernel/linux/linux-5.10/net/atm/
H A Dclip.c78 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()
153 pr_debug("expired neigh %p\n", n); in neigh_check_cb()
211 skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh in clip_push()
266 clip_neigh_solicit(struct neighbour *neigh, struct sk_buff *skb) clip_neigh_solicit() argument
274 clip_neigh_error(struct neighbour *neigh, struct sk_buff *skb) clip_neigh_error() argument
290 clip_constructor(struct net_device *dev, struct neighbour *neigh) clip_constructor() argument
446 struct neighbour *neigh; clip_setentry() local
[all...]
/kernel/linux/linux-6.6/net/atm/
H A Dclip.c78 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()
153 pr_debug("expired neigh %p\n", n); in neigh_check_cb()
211 skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh in clip_push()
266 clip_neigh_solicit(struct neighbour *neigh, struct sk_buff *skb) clip_neigh_solicit() argument
274 clip_neigh_error(struct neighbour *neigh, struct sk_buff *skb) clip_neigh_error() argument
290 clip_constructor(struct net_device *dev, struct neighbour *neigh) clip_constructor() argument
446 struct neighbour *neigh; clip_setentry() local
[all...]
/kernel/linux/linux-6.6/include/net/
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) in neigh_release() argument
444 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
445 neigh_destroy(neigh); in neigh_release()
448 neigh_clone(struct neighbour *neigh) neigh_clone() argument
457 neigh_event_send_probe(struct neighbour *neigh, struct sk_buff *skb, const bool immediate_ok) neigh_event_send_probe() argument
470 neigh_event_send(struct neighbour *neigh, struct sk_buff *skb) neigh_event_send() argument
589 neigh_update_is_router(struct neighbour *neigh, u32 flags, int *notify) neigh_update_is_router() argument
[all...]
/kernel/linux/linux-5.10/net/6lowpan/
H 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()
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()
114 lowpan_ndisc_opt_addr_space(const struct net_device *dev, u8 icmp6_type, struct neighbour *neigh, u8 *ha_buf, u8 **ha) lowpan_ndisc_opt_addr_space() argument
/kernel/linux/linux-6.6/net/6lowpan/
H 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()
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()
114 lowpan_ndisc_opt_addr_space(const struct net_device *dev, u8 icmp6_type, struct neighbour *neigh, u8 *ha_buf, u8 **ha) lowpan_ndisc_opt_addr_space() argument
/kernel/linux/linux-5.10/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) in batadv_v_elp_get_throughput() argument
68 struct batadv_hard_iface *hard_iface = neigh->if_incoming; in batadv_v_elp_get_throughput()
94 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()
183 * @neigh
193 batadv_v_elp_wifi_neigh_probe(struct batadv_hardif_neigh_node *neigh) batadv_v_elp_wifi_neigh_probe() argument
454 struct batadv_neigh_node *neigh; batadv_v_elp_neigh_update() local
[all...]

Completed in 25 milliseconds

12345678