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()
160 if (e->neigh && !(e->neigh->dev->flags & IFF_LOOPBACK)) in write_l2e()
161 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in write_l2e()
212 e->state = (e->neigh->nud_state & NUD_STALE) ? in do_l2t_write_rpl()
241 neigh_event_send(e->neigh, NULL); in cxgb4_l2t_send()
260 !neigh_event_send(e->neigh, NULL)) { in cxgb4_l2t_send()
317 if (e->neigh) { in t4_l2e_free()
318 neigh_release(e->neigh); in t4_l2e_free()
319 e->neigh = NULL; in t4_l2e_free()
346 static void reuse_entry(struct l2t_entry *e, struct neighbour *neigh) in reuse_entry() argument
351 if (neigh != e->neigh) in reuse_entry()
352 neigh_replace(e, neigh); in reuse_entry()
353 nud_state = neigh->nud_state; in reuse_entry()
354 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
364 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, in cxgb4_l2t_get() argument
371 int addr_len = neigh->tbl->key_len; in cxgb4_l2t_get()
372 u32 *addr = (u32 *)neigh->primary_key; in cxgb4_l2t_get()
373 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get()
376 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
381 if (neigh->dev->priv_flags & IFF_802_1Q_VLAN) in cxgb4_l2t_get()
382 vlan = vlan_dev_vlan_id(neigh->dev); in cxgb4_l2t_get()
392 reuse_entry(e, neigh); in cxgb4_l2t_get()
401 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
409 neigh_replace(e, neigh); in cxgb4_l2t_get()
479 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh) in t4_l2t_update() argument
484 int addr_len = neigh->tbl->key_len; in t4_l2t_update()
485 u32 *addr = (u32 *) neigh->primary_key; in t4_l2t_update()
486 int ifidx = neigh->dev->ifindex; in t4_l2t_update()
504 if (neigh != e->neigh) in t4_l2t_update()
505 neigh_replace(e, neigh); in t4_l2t_update()
508 if (neigh->nud_state & NUD_FAILED) { in t4_l2t_update()
511 } else if ((neigh->nud_state & (NUD_CONNECTED | NUD_STALE)) && in t4_l2t_update()
516 e->state = neigh->nud_state & NUD_CONNECTED ? in t4_l2t_update()
518 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac))) in t4_l2t_update()
648 e->neigh ? e->neigh->dev->name : ""); in l2t_seq_show()