Home
last modified time | relevance | path

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

/drivers/infiniband/ulp/ipoib/
Dipoib_main.c440 struct ipoib_neigh *neigh, *tn; in path_rec_completion() local
475 list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) { in path_rec_completion()
476 if (neigh->ah) { in path_rec_completion()
477 WARN_ON(neigh->ah != old_ah); in path_rec_completion()
485 ipoib_put_ah(neigh->ah); in path_rec_completion()
488 neigh->ah = path->ah; in path_rec_completion()
490 if (ipoib_cm_enabled(dev, neigh->daddr)) { in path_rec_completion()
491 if (!ipoib_cm_get(neigh)) in path_rec_completion()
492 ipoib_cm_set(neigh, ipoib_cm_create_tx(dev, in path_rec_completion()
494 neigh)); in path_rec_completion()
[all …]
Dipoib.h227 struct ipoib_neigh *neigh; member
428 void ipoib_neigh_dtor(struct ipoib_neigh *neigh);
429 static inline void ipoib_neigh_put(struct ipoib_neigh *neigh) in ipoib_neigh_put() argument
431 if (atomic_dec_and_test(&neigh->refcnt)) in ipoib_neigh_put()
432 ipoib_neigh_dtor(neigh); in ipoib_neigh_put()
437 void ipoib_neigh_free(struct ipoib_neigh *neigh);
564 static inline int ipoib_cm_up(struct ipoib_neigh *neigh) in ipoib_cm_up() argument
567 return test_bit(IPOIB_FLAG_OPER_UP, &neigh->cm->flags); in ipoib_cm_up()
570 static inline struct ipoib_cm_tx *ipoib_cm_get(struct ipoib_neigh *neigh) in ipoib_cm_get() argument
572 return neigh->cm; in ipoib_cm_get()
[all …]
Dipoib_cm.c809 struct ipoib_neigh *neigh; in ipoib_cm_handle_tx_wc() local
816 neigh = tx->neigh; in ipoib_cm_handle_tx_wc()
818 if (neigh) { in ipoib_cm_handle_tx_wc()
819 neigh->cm = NULL; in ipoib_cm_handle_tx_wc()
820 list_del(&neigh->list); in ipoib_cm_handle_tx_wc()
821 ipoib_neigh_free(neigh); in ipoib_cm_handle_tx_wc()
823 tx->neigh = NULL; in ipoib_cm_handle_tx_wc()
1000 if (p->neigh) in ipoib_cm_rep_handler()
1001 while ((skb = __skb_dequeue(&p->neigh->queue))) in ipoib_cm_rep_handler()
1211 struct ipoib_neigh *neigh; in ipoib_cm_tx_handler() local
[all …]
Dipoib_multicast.c705 struct ipoib_neigh *neigh; in ipoib_mcast_send() local
708 neigh = ipoib_neigh_get(dev, daddr); in ipoib_mcast_send()
710 if (!neigh) { in ipoib_mcast_send()
711 neigh = ipoib_neigh_alloc(daddr, dev); in ipoib_mcast_send()
712 if (neigh) { in ipoib_mcast_send()
714 neigh->ah = mcast->ah; in ipoib_mcast_send()
715 list_add_tail(&neigh->list, &mcast->neigh_list); in ipoib_mcast_send()
720 if (neigh) in ipoib_mcast_send()
721 ipoib_neigh_put(neigh); in ipoib_mcast_send()
/drivers/net/ethernet/chelsio/cxgb3/
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()
159 if (!neigh_event_send(e->neigh, NULL)) { in t3_l2t_send_slow()
183 neigh_event_send(e->neigh, NULL); in t3_l2t_send_event()
209 neigh_event_send(e->neigh, NULL); in t3_l2t_send_event()
267 if (e->neigh) { in t3_l2e_free()
268 neigh_release(e->neigh); in t3_l2e_free()
[all …]
Dl2t.h64 struct neighbour *neigh; /* associated neighbour */ member
111 void t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh);
Dcxgb3_offload.c66 static void cxgb_neigh_update(struct neighbour *neigh);
68 struct neighbour *neigh, const void *daddr);
488 static void dummy_neigh_update(struct t3cdev *dev, struct neighbour *neigh) in dummy_neigh_update() argument
972 cxgb_redirect(nr->old, nr->new, nr->neigh, in nb_callback()
974 cxgb_neigh_update(nr->neigh); in nb_callback()
1073 static void cxgb_neigh_update(struct neighbour *neigh) in cxgb_neigh_update() argument
1077 if (!neigh) in cxgb_neigh_update()
1079 dev = neigh->dev; in cxgb_neigh_update()
1084 t3_l2t_update(tdev, neigh); in cxgb_neigh_update()
1111 struct neighbour *neigh, in cxgb_redirect() argument
[all …]
Dt3cdev.h61 void (*neigh_update)(struct t3cdev *dev, struct neighbour *neigh);
/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c129 if (e->neigh) in neigh_replace()
130 neigh_release(e->neigh); in neigh_replace()
131 e->neigh = n; in neigh_replace()
156 if (e->neigh) in write_l2e()
157 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in write_l2e()
207 e->state = (e->neigh->nud_state & NUD_STALE) ? in do_l2t_write_rpl()
236 neigh_event_send(e->neigh, NULL); in cxgb4_l2t_send()
255 !neigh_event_send(e->neigh, NULL)) { in cxgb4_l2t_send()
312 if (e->neigh) { in t4_l2e_free()
313 neigh_release(e->neigh); in t4_l2e_free()
[all …]
Dl2t.h62 struct neighbour *neigh; /* associated neighbour */ member
98 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh,
102 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh);
Dcxgb4_main.c3443 static void check_neigh_update(struct neighbour *neigh) in check_neigh_update() argument
3446 const struct net_device *netdev = neigh->dev; in check_neigh_update()
3452 t4_l2t_update(dev_get_drvdata(parent), neigh); in check_neigh_update()
/drivers/infiniband/hw/nes/
Dnes.c216 struct neighbour *neigh = ptr; in nes_net_event() local
227 if (netdev == neigh->dev) { in nes_net_event()
232 if (neigh->nud_state & NUD_VALID) { in nes_net_event()
233 nes_manage_arp_cache(neigh->dev, neigh->ha, in nes_net_event()
234 ntohl(*(__be32 *)neigh->primary_key), NES_ARP_ADD); in nes_net_event()
236 nes_manage_arp_cache(neigh->dev, neigh->ha, in nes_net_event()
237 ntohl(*(__be32 *)neigh->primary_key), NES_ARP_DELETE); in nes_net_event()
Dnes_cm.c1330 struct neighbour *neigh; in nes_addr_resolve_neigh() local
1347 neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, netdev); in nes_addr_resolve_neigh()
1350 if (neigh) { in nes_addr_resolve_neigh()
1351 if (neigh->nud_state & NUD_VALID) { in nes_addr_resolve_neigh()
1354 neigh->ha, ntohl(rt->rt_gateway)); in nes_addr_resolve_neigh()
1358 neigh->ha, ETH_ALEN)) { in nes_addr_resolve_neigh()
1368 nes_manage_arp_cache(nesvnic->netdev, neigh->ha, in nes_addr_resolve_neigh()
1373 neigh_event_send(neigh, NULL); in nes_addr_resolve_neigh()
1379 if (neigh) in nes_addr_resolve_neigh()
1380 neigh_release(neigh); in nes_addr_resolve_neigh()
/drivers/infiniband/hw/cxgb4/
Dcm.c496 viid = cxgb4_port_viid(l2t->neigh->dev); in select_ntuple()
1570 struct neighbour *neigh; in c4iw_reconnect() local
1599 neigh = dst_neigh_lookup(ep->dst, in c4iw_reconnect()
1601 if (!neigh) { in c4iw_reconnect()
1608 if (neigh->dev->flags & IFF_LOOPBACK) { in c4iw_reconnect()
1613 neigh, pdev, 0); in c4iw_reconnect()
1621 neigh, neigh->dev, 0); in c4iw_reconnect()
1622 pi = (struct port_info *)netdev_priv(neigh->dev); in c4iw_reconnect()
1624 ep->tx_chan = cxgb4_port_chan(neigh->dev); in c4iw_reconnect()
1625 ep->smac_idx = (cxgb4_port_viid(neigh->dev) & in c4iw_reconnect()
[all …]
/drivers/infiniband/core/
Daddr.c428 struct neighbour *neigh = ctx; in netevent_callback() local
430 if (neigh->nud_state & NUD_VALID) { in netevent_callback()
/drivers/net/plip/
Dplip.c153 static int plip_hard_header_cache(const struct neighbour *neigh,
1027 static int plip_hard_header_cache(const struct neighbour *neigh, in plip_hard_header_cache() argument
1032 ret = eth_header_cache(neigh, hh, type); in plip_hard_header_cache()
1038 plip_rewrite_address (neigh->dev, eth); in plip_hard_header_cache()
/drivers/firewire/
Dnet.c252 static int fwnet_header_cache(const struct neighbour *neigh, in fwnet_header_cache() argument
260 net = neigh->dev; in fwnet_header_cache()
263 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache()
/drivers/isdn/i4l/
Disdn_net.c1986 static int isdn_header_cache(const struct neighbour *neigh, struct hh_cache *hh, in isdn_header_cache() argument
1989 const struct net_device *dev = neigh->dev; in isdn_header_cache()
1993 return eth_header_cache(neigh, hh, type); in isdn_header_cache()