Lines Matching defs:neigh

130 	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) {
314 neigh_release(e->neigh);
315 e->neigh = NULL;
339 * Update an L2T entry that was previously used for the same next hop as neigh.
342 static void reuse_entry(struct l2t_entry *e, struct neighbour *neigh)
347 if (neigh != e->neigh)
348 neigh_replace(e, neigh);
349 nud_state = neigh->nud_state;
350 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) ||
360 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh,
367 int addr_len = neigh->tbl->key_len;
368 u32 *addr = (u32 *)neigh->primary_key;
369 int ifidx = neigh->dev->ifindex;
372 if (neigh->dev->flags & IFF_LOOPBACK)
377 if (neigh->dev->priv_flags & IFF_802_1Q_VLAN)
378 vlan = vlan_dev_vlan_id(neigh->dev);
388 reuse_entry(e, neigh);
397 if (neigh->dev->flags & IFF_LOOPBACK)
405 neigh_replace(e, neigh);
475 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh)
480 int addr_len = neigh->tbl->key_len;
481 u32 *addr = (u32 *) neigh->primary_key;
482 int ifidx = neigh->dev->ifindex;
500 if (neigh != e->neigh)
501 neigh_replace(e, neigh);
504 if (neigh->nud_state & NUD_FAILED) {
507 } else if ((neigh->nud_state & (NUD_CONNECTED | NUD_STALE)) &&
512 e->state = neigh->nud_state & NUD_CONNECTED ?
514 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)))
633 e->neigh ? e->neigh->dev->name : "");