Lines Matching defs:neigh

165  * @work:	Work queue for writing neigh to the nfp
323 struct nfp_neigh_entry *neigh)
329 if (flow_pay->pre_tun_rule.is_ipv6 != neigh->is_ipv6)
336 if (neigh->flow)
339 common = neigh->is_ipv6 ?
340 &((struct nfp_tun_neigh_v6 *)neigh->payload)->common :
341 &((struct nfp_tun_neigh_v4 *)neigh->payload)->common;
342 ext = neigh->is_ipv6 ?
343 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext :
344 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext;
352 list_add(&neigh->list_head, &predt->nn_list);
353 neigh->flow = predt;
402 struct nfp_neigh_entry *neigh;
410 while ((neigh = rhashtable_walk_next(&iter)) != NULL) {
411 if (IS_ERR(neigh))
413 ext = neigh->is_ipv6 ?
414 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext :
415 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext;
420 neigh_size = neigh->is_ipv6 ?
423 type = neigh->is_ipv6 ? NFP_FLOWER_CMSG_TYPE_TUN_NEIGH_V6 :
425 nfp_flower_xmit_tun_conf(app, type, neigh_size, neigh->payload,
428 rhashtable_remove_fast(&priv->neigh_table, &neigh->ht_node,
430 if (neigh->flow)
431 list_del(&neigh->list_head);
432 kfree(neigh);
441 struct nfp_neigh_entry *neigh, *tmp;
446 list_for_each_entry_safe(neigh, tmp, &predt->nn_list, list_head) {
447 ext = neigh->is_ipv6 ?
448 &((struct nfp_tun_neigh_v6 *)neigh->payload)->ext :
449 &((struct nfp_tun_neigh_v4 *)neigh->payload)->ext;
450 neigh->flow = NULL;
454 list_del(&neigh->list_head);
455 neigh_size = neigh->is_ipv6 ?
458 type = neigh->is_ipv6 ? NFP_FLOWER_CMSG_TYPE_TUN_NEIGH_V6 :
460 nfp_flower_xmit_tun_conf(app, type, neigh_size, neigh->payload,
467 void *flow, struct neighbour *neigh, bool is_ipv6,
470 bool neigh_invalid = !(neigh->nud_state & NUD_VALID) || neigh->dead;
473 unsigned long cookie = (unsigned long)neigh;
533 neigh_ha_snapshot(common->dst_addr, neigh, netdev);
567 neigh_event_send(neigh, NULL);
599 neigh_ha_snapshot(common->dst_addr, neigh, netdev);
724 n = redir->neigh;