Lines Matching refs:neigh
129 if (e->neigh) in neigh_replace()
130 neigh_release(e->neigh); in neigh_replace()
131 e->neigh = n; in neigh_replace()
156 if (e->neigh) in write_l2e()
157 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in write_l2e()
207 e->state = (e->neigh->nud_state & NUD_STALE) ? in do_l2t_write_rpl()
236 neigh_event_send(e->neigh, NULL); in cxgb4_l2t_send()
255 !neigh_event_send(e->neigh, NULL)) { in cxgb4_l2t_send()
312 if (e->neigh) { in t4_l2e_free()
313 neigh_release(e->neigh); in t4_l2e_free()
314 e->neigh = NULL; in t4_l2e_free()
341 static void reuse_entry(struct l2t_entry *e, struct neighbour *neigh) in reuse_entry() argument
346 if (neigh != e->neigh) in reuse_entry()
347 neigh_replace(e, neigh); in reuse_entry()
348 nud_state = neigh->nud_state; in reuse_entry()
349 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
359 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, in cxgb4_l2t_get() argument
366 int addr_len = neigh->tbl->key_len; in cxgb4_l2t_get()
367 u32 *addr = (u32 *)neigh->primary_key; in cxgb4_l2t_get()
368 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get()
371 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
376 if (neigh->dev->priv_flags & IFF_802_1Q_VLAN) in cxgb4_l2t_get()
377 vlan = vlan_dev_vlan_id(neigh->dev); in cxgb4_l2t_get()
387 reuse_entry(e, neigh); in cxgb4_l2t_get()
402 neigh_replace(e, neigh); in cxgb4_l2t_get()
438 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh) in t4_l2t_update() argument
443 int addr_len = neigh->tbl->key_len; in t4_l2t_update()
444 u32 *addr = (u32 *) neigh->primary_key; in t4_l2t_update()
445 int ifidx = neigh->dev->ifindex; in t4_l2t_update()
463 if (neigh != e->neigh) in t4_l2t_update()
464 neigh_replace(e, neigh); in t4_l2t_update()
467 if (neigh->nud_state & NUD_FAILED) { in t4_l2t_update()
470 } else if ((neigh->nud_state & (NUD_CONNECTED | NUD_STALE)) && in t4_l2t_update()
475 e->state = neigh->nud_state & NUD_CONNECTED ? in t4_l2t_update()
477 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac))) in t4_l2t_update()
596 e->neigh ? e->neigh->dev->name : ""); in l2t_seq_show()