Lines Matching refs:neigh
77 if (e->neigh) in neigh_replace()
78 neigh_release(e->neigh); in neigh_replace()
79 e->neigh = n; in neigh_replace()
105 memcpy(e->dmac, e->neigh->ha, sizeof(e->dmac)); in setup_l2e_send_pending()
134 neigh_event_send(e->neigh, NULL); in t3_l2t_send_slow()
160 if (!neigh_event_send(e->neigh, NULL)) { in t3_l2t_send_slow()
184 neigh_event_send(e->neigh, NULL); in t3_l2t_send_event()
210 neigh_event_send(e->neigh, NULL); in t3_l2t_send_event()
268 if (e->neigh) { in t3_l2e_free()
269 neigh_release(e->neigh); in t3_l2e_free()
270 e->neigh = NULL; in t3_l2e_free()
283 static inline void reuse_entry(struct l2t_entry *e, struct neighbour *neigh) in reuse_entry() argument
289 if (neigh != e->neigh) in reuse_entry()
290 neigh_replace(e, neigh); in reuse_entry()
291 nud_state = neigh->nud_state; in reuse_entry()
292 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
306 struct neighbour *neigh; in t3_l2t_get() local
315 neigh = dst_neigh_lookup(dst, daddr); in t3_l2t_get()
316 if (!neigh) in t3_l2t_get()
319 addr = *(u32 *) neigh->primary_key; in t3_l2t_get()
320 ifidx = neigh->dev->ifindex; in t3_l2t_get()
323 dev = neigh->dev; in t3_l2t_get()
339 reuse_entry(e, neigh); in t3_l2t_get()
354 neigh_replace(e, neigh); in t3_l2t_get()
355 if (is_vlan_dev(neigh->dev)) in t3_l2t_get()
356 e->vlan = vlan_dev_vlan_id(neigh->dev); in t3_l2t_get()
364 if (neigh) in t3_l2t_get()
365 neigh_release(neigh); in t3_l2t_get()
399 void t3_l2t_update(struct t3cdev *dev, struct neighbour *neigh) in t3_l2t_update() argument
404 u32 addr = *(u32 *) neigh->primary_key; in t3_l2t_update()
405 int ifidx = neigh->dev->ifindex; in t3_l2t_update()
422 if (neigh != e->neigh) in t3_l2t_update()
423 neigh_replace(e, neigh); in t3_l2t_update()
426 if (neigh->nud_state & NUD_FAILED) { in t3_l2t_update()
428 } else if (neigh->nud_state & (NUD_CONNECTED|NUD_STALE)) in t3_l2t_update()
431 e->state = neigh->nud_state & NUD_CONNECTED ? in t3_l2t_update()
433 if (!ether_addr_equal(e->dmac, neigh->ha)) in t3_l2t_update()