Lines Matching refs:neigh
131 if (e->neigh) in neigh_replace()
132 neigh_release(e->neigh); in neigh_replace()
133 e->neigh = n; in neigh_replace()
158 if (e->neigh && !(e->neigh->dev->flags & IFF_LOOPBACK)) in write_l2e()
159 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in write_l2e()
209 e->state = (e->neigh->nud_state & NUD_STALE) ? in do_l2t_write_rpl()
238 neigh_event_send(e->neigh, NULL); in cxgb4_l2t_send()
257 !neigh_event_send(e->neigh, NULL)) { in cxgb4_l2t_send()
314 if (e->neigh) { in t4_l2e_free()
315 neigh_release(e->neigh); in t4_l2e_free()
316 e->neigh = NULL; in t4_l2e_free()
343 static void reuse_entry(struct l2t_entry *e, struct neighbour *neigh) in reuse_entry() argument
348 if (neigh != e->neigh) in reuse_entry()
349 neigh_replace(e, neigh); in reuse_entry()
350 nud_state = neigh->nud_state; in reuse_entry()
351 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
361 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, in cxgb4_l2t_get() argument
368 int addr_len = neigh->tbl->key_len; in cxgb4_l2t_get()
369 u32 *addr = (u32 *)neigh->primary_key; in cxgb4_l2t_get()
370 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get()
373 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
378 if (neigh->dev->priv_flags & IFF_802_1Q_VLAN) in cxgb4_l2t_get()
379 vlan = vlan_dev_vlan_id(neigh->dev); in cxgb4_l2t_get()
389 reuse_entry(e, neigh); in cxgb4_l2t_get()
398 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
406 neigh_replace(e, neigh); in cxgb4_l2t_get()
476 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh) in t4_l2t_update() argument
481 int addr_len = neigh->tbl->key_len; in t4_l2t_update()
482 u32 *addr = (u32 *) neigh->primary_key; in t4_l2t_update()
483 int ifidx = neigh->dev->ifindex; in t4_l2t_update()
501 if (neigh != e->neigh) in t4_l2t_update()
502 neigh_replace(e, neigh); in t4_l2t_update()
505 if (neigh->nud_state & NUD_FAILED) { in t4_l2t_update()
508 } else if ((neigh->nud_state & (NUD_CONNECTED | NUD_STALE)) && in t4_l2t_update()
513 e->state = neigh->nud_state & NUD_CONNECTED ? in t4_l2t_update()
515 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac))) in t4_l2t_update()
634 e->neigh ? e->neigh->dev->name : ""); in l2t_seq_show()