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()
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()
205 e->state = (e->neigh->nud_state & NUD_STALE) ? in do_l2t_write_rpl()
229 neigh_event_send(e->neigh, NULL); in cxgb4_l2t_send()
249 !neigh_event_send(e->neigh, NULL)) { in cxgb4_l2t_send()
356 if (e->neigh) { in _t4_l2e_free()
357 neigh_release(e->neigh); in _t4_l2e_free()
358 e->neigh = NULL; in _t4_l2e_free()
374 if (e->neigh) { in t4_l2e_free()
375 neigh_release(e->neigh); in t4_l2e_free()
376 e->neigh = NULL; in t4_l2e_free()
397 static void reuse_entry(struct l2t_entry *e, struct neighbour *neigh) in reuse_entry() argument
402 if (neigh != e->neigh) in reuse_entry()
403 neigh_replace(e, neigh); in reuse_entry()
404 nud_state = neigh->nud_state; in reuse_entry()
405 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac)) || in reuse_entry()
415 struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, in cxgb4_l2t_get() argument
422 unsigned int addr_len = neigh->tbl->key_len; in cxgb4_l2t_get()
423 u32 *addr = (u32 *)neigh->primary_key; in cxgb4_l2t_get()
424 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get()
427 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
432 if (is_vlan_dev(neigh->dev)) { in cxgb4_l2t_get()
433 vlan = vlan_dev_vlan_id(neigh->dev); in cxgb4_l2t_get()
434 vlan |= vlan_dev_get_egress_qos_mask(neigh->dev, priority); in cxgb4_l2t_get()
445 reuse_entry(e, neigh); in cxgb4_l2t_get()
454 if (neigh->dev->flags & IFF_LOOPBACK) in cxgb4_l2t_get()
462 neigh_replace(e, neigh); in cxgb4_l2t_get()
509 void t4_l2t_update(struct adapter *adap, struct neighbour *neigh) in t4_l2t_update() argument
511 unsigned int addr_len = neigh->tbl->key_len; in t4_l2t_update()
512 u32 *addr = (u32 *) neigh->primary_key; in t4_l2t_update()
513 int hash, ifidx = neigh->dev->ifindex; in t4_l2t_update()
534 if (neigh != e->neigh) in t4_l2t_update()
535 neigh_replace(e, neigh); in t4_l2t_update()
538 if (neigh->nud_state & NUD_FAILED) { in t4_l2t_update()
540 } else if ((neigh->nud_state & (NUD_CONNECTED | NUD_STALE)) && in t4_l2t_update()
545 e->state = neigh->nud_state & NUD_CONNECTED ? in t4_l2t_update()
547 if (memcmp(e->dmac, neigh->ha, sizeof(e->dmac))) in t4_l2t_update()
730 e->neigh ? e->neigh->dev->name : ""); in l2t_seq_show()