Lines Matching refs:nn_entry

361 			   struct nfp_neigh_entry *nn_entry)  in nfp_tun_link_predt_entries()  argument
367 nfp_tun_mutual_link(predt, nn_entry); in nfp_tun_link_predt_entries()
375 struct nfp_neigh_entry *nn_entry; in nfp_tun_link_and_update_nn_entries() local
382 while ((nn_entry = rhashtable_walk_next(&iter)) != NULL) { in nfp_tun_link_and_update_nn_entries()
383 if (IS_ERR(nn_entry)) in nfp_tun_link_and_update_nn_entries()
385 nfp_tun_mutual_link(predt, nn_entry); in nfp_tun_link_and_update_nn_entries()
386 neigh_size = nn_entry->is_ipv6 ? in nfp_tun_link_and_update_nn_entries()
389 type = nn_entry->is_ipv6 ? NFP_FLOWER_CMSG_TYPE_TUN_NEIGH_V6 : in nfp_tun_link_and_update_nn_entries()
392 nn_entry->payload, in nfp_tun_link_and_update_nn_entries()
476 struct nfp_neigh_entry *nn_entry; in nfp_tun_write_neigh() local
490 nn_entry = rhashtable_lookup_fast(&priv->neigh_table, &cookie, in nfp_tun_write_neigh()
492 if (!nn_entry && !neigh_invalid) { in nfp_tun_write_neigh()
497 nn_entry = kzalloc(sizeof(*nn_entry) + neigh_size, in nfp_tun_write_neigh()
499 if (!nn_entry) in nfp_tun_write_neigh()
502 nn_entry->payload = (char *)&nn_entry[1]; in nfp_tun_write_neigh()
503 nn_entry->neigh_cookie = cookie; in nfp_tun_write_neigh()
504 nn_entry->is_ipv6 = is_ipv6; in nfp_tun_write_neigh()
505 nn_entry->flow = NULL; in nfp_tun_write_neigh()
510 payload = (struct nfp_tun_neigh_v6 *)nn_entry->payload; in nfp_tun_write_neigh()
521 payload = (struct nfp_tun_neigh_v4 *)nn_entry->payload; in nfp_tun_write_neigh()
540 &nn_entry->ht_node, in nfp_tun_write_neigh()
544 nfp_tun_link_predt_entries(app, nn_entry); in nfp_tun_write_neigh()
546 nn_entry->payload, in nfp_tun_write_neigh()
548 } else if (nn_entry && neigh_invalid) { in nfp_tun_write_neigh()
553 payload = (struct nfp_tun_neigh_v6 *)nn_entry->payload; in nfp_tun_write_neigh()
561 payload = (struct nfp_tun_neigh_v4 *)nn_entry->payload; in nfp_tun_write_neigh()
569 &nn_entry->ht_node, in nfp_tun_write_neigh()
573 nn_entry->payload, in nfp_tun_write_neigh()
576 if (nn_entry->flow) in nfp_tun_write_neigh()
577 list_del(&nn_entry->list_head); in nfp_tun_write_neigh()
578 kfree(nn_entry); in nfp_tun_write_neigh()
579 } else if (nn_entry && !neigh_invalid) { in nfp_tun_write_neigh()
587 payload = (struct nfp_tun_neigh_v6 *)nn_entry->payload; in nfp_tun_write_neigh()
593 payload = (struct nfp_tun_neigh_v4 *)nn_entry->payload; in nfp_tun_write_neigh()
602 if (is_mac_change && nn_entry->flow) { in nfp_tun_write_neigh()
603 list_del(&nn_entry->list_head); in nfp_tun_write_neigh()
604 nn_entry->flow = NULL; in nfp_tun_write_neigh()
606 nfp_tun_link_predt_entries(app, nn_entry); in nfp_tun_write_neigh()
608 nn_entry->payload, in nfp_tun_write_neigh()
617 kfree(nn_entry); in nfp_tun_write_neigh()