Searched defs:neigh (Results 1 - 17 of 17) sorted by relevance

/drivers/net/ethernet/chelsio/cxgb4/
H A Dl2t.h62 struct neighbour *neigh; /* associated neighbour */ member in struct:l2t_entry
98 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh,
103 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh);
H A Dl2t.c130 if (e->neigh)
131 neigh_release(e->neigh);
132 e->neigh = n;
157 if (e->neigh && !(e->neigh->dev->flags & IFF_LOOPBACK))
158 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac));
208 e->state = (e->neigh->nud_state & NUD_STALE) ?
237 neigh_event_send(e->neigh, NULL);
256 !neigh_event_send(e->neigh, NULL)) {
313 if (e->neigh) {
342 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) argument
360 cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, const struct net_device *physdev, unsigned int priority) argument
475 t4_l2t_update(struct adapter *adap, struct neighbour *neigh) argument
[all...]
H A Dcxgb4_main.c3973 static void check_neigh_update(struct neighbour *neigh) argument
3976 const struct net_device *netdev = neigh->dev;
3982 t4_l2t_update(dev_get_drvdata(parent), neigh); local
/drivers/infiniband/ulp/ipoib/
H A Dipoib_multicast.c77 /* remove all neigh connected to this mcast */
713 struct ipoib_neigh *neigh; local
716 neigh = ipoib_neigh_get(dev, daddr);
718 if (!neigh) {
719 neigh = ipoib_neigh_alloc(daddr, dev);
720 if (neigh) {
722 neigh->ah = mcast->ah;
723 list_add_tail(&neigh->list, &mcast->neigh_list);
728 if (neigh)
729 ipoib_neigh_put(neigh);
[all...]
H A Dipoib_cm.c812 struct ipoib_neigh *neigh; local
819 neigh = tx->neigh;
821 if (neigh) {
822 neigh->cm = NULL;
823 ipoib_neigh_free(neigh);
825 tx->neigh = NULL;
1002 if (p->neigh)
1003 while ((skb = __skb_dequeue(&p->neigh->queue)))
1225 struct ipoib_neigh *neigh; local
1271 ipoib_cm_create_tx(struct net_device *dev, struct ipoib_path *path, struct ipoib_neigh *neigh) argument
1311 struct ipoib_neigh *neigh; local
[all...]
H A Dipoib_main.c319 /* remove all neigh connected to this path */
442 struct ipoib_neigh *neigh, *tn; local
477 list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) {
478 if (neigh->ah) {
479 WARN_ON(neigh->ah != old_ah);
487 ipoib_put_ah(neigh->ah);
490 neigh->ah = path->ah;
492 if (ipoib_cm_enabled(dev, neigh->daddr)) {
493 if (!ipoib_cm_get(neigh))
494 ipoib_cm_set(neigh, ipoib_cm_create_t
591 struct ipoib_neigh *neigh; local
718 struct ipoib_neigh *neigh; local
866 struct ipoib_neigh *neigh = NULL; local
925 struct ipoib_neigh *neigh; local
965 struct ipoib_neigh *neigh; local
988 struct ipoib_neigh *neigh; local
1038 ipoib_neigh_dtor(struct ipoib_neigh *neigh) argument
1066 struct ipoib_neigh *neigh = container_of(rp, struct ipoib_neigh, rcu); local
1071 ipoib_neigh_free(struct ipoib_neigh *neigh) argument
1173 struct ipoib_neigh *neigh; local
1217 struct ipoib_neigh *neigh; local
[all...]
H A Dipoib.h234 struct ipoib_neigh *neigh; member in struct:ipoib_cm_tx
434 void ipoib_neigh_dtor(struct ipoib_neigh *neigh);
435 static inline void ipoib_neigh_put(struct ipoib_neigh *neigh) argument
437 if (atomic_dec_and_test(&neigh->refcnt))
438 ipoib_neigh_dtor(neigh);
443 void ipoib_neigh_free(struct ipoib_neigh *neigh);
570 static inline int ipoib_cm_up(struct ipoib_neigh *neigh) argument
573 return test_bit(IPOIB_FLAG_OPER_UP, &neigh->cm->flags);
576 static inline struct ipoib_cm_tx *ipoib_cm_get(struct ipoib_neigh *neigh) argument
578 return neigh
581 ipoib_cm_set(struct ipoib_neigh *neigh, struct ipoib_cm_tx *tx) argument
627 ipoib_cm_up(struct ipoib_neigh *neigh) argument
633 ipoib_cm_get(struct ipoib_neigh *neigh) argument
638 ipoib_cm_set(struct ipoib_neigh *neigh, struct ipoib_cm_tx *tx) argument
683 ipoib_cm_create_tx(struct net_device *dev, struct ipoib_path *path, struct ipoib_neigh *neigh) argument
[all...]
/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);
159 if (!neigh_event_send(e->neigh, NULL)) {
183 neigh_event_send(e->neigh, NULL);
209 neigh_event_send(e->neigh, NULL);
267 if (e->neigh) {
268 neigh_release(e->neigh);
282 reuse_entry(struct l2t_entry *e, struct neighbour *neigh) argument
305 struct neighbour *neigh; local
398 t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh) argument
[all...]
H A Dl2t.h64 struct neighbour *neigh; /* associated neighbour */ member in struct:l2t_entry
111 void t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh);
H A 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) argument
972 cxgb_redirect(nr->old, nr->new, nr->neigh,
974 cxgb_neigh_update(nr->neigh);
1073 static void cxgb_neigh_update(struct neighbour *neigh) argument
1077 if (!neigh)
1079 dev = neigh->dev;
1084 t3_l2t_update(tdev, neigh);
1111 struct neighbour *neigh,
1110 cxgb_redirect(struct dst_entry *old, struct dst_entry *new, struct neighbour *neigh, const void *daddr) argument
[all...]
/drivers/infiniband/core/
H A Daddr.c533 struct neighbour *neigh = ctx; local
535 if (neigh->nud_state & NUD_VALID) {
/drivers/infiniband/hw/nes/
H A Dnes.c225 struct neighbour *neigh = ptr; local
236 if (netdev == neigh->dev) {
241 if (neigh->nud_state & NUD_VALID) {
242 nes_manage_arp_cache(neigh->dev, neigh->ha,
243 ntohl(*(__be32 *)neigh->primary_key), NES_ARP_ADD);
245 nes_manage_arp_cache(neigh->dev, neigh->ha,
246 ntohl(*(__be32 *)neigh->primary_key), NES_ARP_DELETE);
H A Dnes_cm.c1494 struct neighbour *neigh; local
1511 neigh = neigh_lookup(&arp_tbl, &rt->rt_gateway, netdev);
1514 if (neigh) {
1515 if (neigh->nud_state & NUD_VALID) {
1518 neigh->ha, ntohl(rt->rt_gateway));
1521 if (ether_addr_equal(nesadapter->arp_table[arpindex].mac_addr, neigh->ha)) {
1531 nes_manage_arp_cache(nesvnic->netdev, neigh->ha,
1536 neigh_event_send(neigh, NULL);
1542 if (neigh)
1543 neigh_release(neigh);
[all...]
/drivers/net/plip/
H A Dplip.c153 static int plip_hard_header_cache(const struct neighbour *neigh,
1027 static int plip_hard_header_cache(const struct neighbour *neigh, argument
1032 ret = eth_header_cache(neigh, hh, type);
1038 plip_rewrite_address (neigh->dev, eth);
/drivers/firewire/
H A Dnet.c252 static int fwnet_header_cache(const struct neighbour *neigh, argument
260 net = neigh->dev;
263 memcpy(h->h_dest, neigh->ha, net->addr_len);
/drivers/isdn/i4l/
H A Disdn_net.c1986 static int isdn_header_cache(const struct neighbour *neigh, struct hh_cache *hh, argument
1989 const struct net_device *dev = neigh->dev;
1993 return eth_header_cache(neigh, hh, type);
/drivers/infiniband/hw/cxgb4/
H A Dcm.c3608 struct neighbour *neigh; local
3663 neigh = dst_neigh_lookup_skb(dst, skb);
3665 if (!neigh) {
3666 pr_err("%s - failed to allocate neigh!\n",
3671 if (neigh->dev->flags & IFF_LOOPBACK) {
3673 e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
3679 pdev = get_real_dev(neigh->dev);
3680 e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
3685 neigh_release(neigh);

Completed in 303 milliseconds