Lines Matching refs:neigh
129 if (e->neigh)
130 neigh_release(e->neigh);
131 e->neigh = n;
158 if (e->neigh && !(e->neigh->dev->flags & IFF_LOOPBACK))
159 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac));
205 e->state = (e->neigh->nud_state & NUD_STALE) ?
229 neigh_event_send(e->neigh, NULL);
249 !neigh_event_send(e->neigh, NULL)) {
356 if (e->neigh) {
357 neigh_release(e->neigh);
358 e->neigh = NULL;
374 if (e->neigh) {
375 neigh_release(e->neigh);
376 e->neigh = NULL;
394 * Update an L2T entry that was previously used for the same next hop as neigh.
397 static void reuse_entry(struct l2t_entry *e, struct neighbour *neigh)
402 if (neigh != e->neigh)
403 neigh_replace(e, neigh);
404 nud_state = neigh->nud_state;
405 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) ||
415 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh,
422 unsigned int addr_len = neigh->tbl->key_len;
423 u32 *addr = (u32 *)neigh->primary_key;
424 int ifidx = neigh->dev->ifindex;
427 if (neigh->dev->flags & IFF_LOOPBACK)
432 if (is_vlan_dev(neigh->dev)) {
433 vlan = vlan_dev_vlan_id(neigh->dev);
434 vlan |= vlan_dev_get_egress_qos_mask(neigh->dev, priority);
445 reuse_entry(e, neigh);
454 if (neigh->dev->flags & IFF_LOOPBACK)
462 neigh_replace(e, neigh);
509 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh)
511 unsigned int addr_len = neigh->tbl->key_len;
512 u32 *addr = (u32 *) neigh->primary_key;
513 int hash, ifidx = neigh->dev->ifindex;
534 if (neigh != e->neigh)
535 neigh_replace(e, neigh);
538 if (neigh->nud_state & NUD_FAILED) {
540 } else if ((neigh->nud_state & (NUD_CONNECTED | NUD_STALE)) &&
545 e->state = neigh->nud_state & NUD_CONNECTED ?
547 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)))
730 e->neigh ? e->neigh->dev->name : "");