Lines Matching defs:neighbour
423 if (ipoib_cm_enabled(dev, neigh->neighbour)) {
513 neigh = ipoib_neigh_alloc(skb->dst->neighbour);
526 path = __path_find(dev, skb->dst->neighbour->ha + 4);
528 path = path_rec_create(dev, skb->dst->neighbour->ha + 4);
543 if (ipoib_cm_enabled(dev, neigh->neighbour)) {
561 ipoib_send(dev, skb, path->ah, IPOIB_QPN(skb->dst->neighbour->ha));
591 if (skb->dst->neighbour->ha[4] != 0xff) {
597 skb->dst->neighbour->ha[8] = (priv->pkey >> 8) & 0xff;
598 skb->dst->neighbour->ha[9] = priv->pkey & 0xff;
599 ipoib_mcast_send(dev, skb->dst->neighbour->ha + 4, skb);
674 if (likely(skb->dst && skb->dst->neighbour)) {
675 if (unlikely(!*to_ipoib_neigh(skb->dst->neighbour))) {
680 neigh = *to_ipoib_neigh(skb->dst->neighbour);
689 skb->dst->neighbour->ha + 4,
707 ipoib_send(dev, skb, neigh->ah, IPOIB_QPN(skb->dst->neighbour->ha));
787 * If we don't have a neighbour structure, stuff the
791 if ((!skb->dst || !skb->dst->neighbour) && daddr) {
812 static void ipoib_neigh_cleanup(struct neighbour *n)
840 struct ipoib_neigh *ipoib_neigh_alloc(struct neighbour *neighbour)
848 neigh->neighbour = neighbour;
849 *to_ipoib_neigh(neighbour) = neigh;
860 *to_ipoib_neigh(neigh->neighbour) = NULL;
959 * address "pseudoheader" for skbs without neighbour struct.