Lines Matching refs:ipv6_ht_node

847 	struct mlxsw_sp_nve_ipv6_ht_node *ipv6_ht_node;  in mlxsw_sp_nve_ipv6_ht_insert()  local
851 ipv6_ht_node = kzalloc(sizeof(*ipv6_ht_node), GFP_KERNEL); in mlxsw_sp_nve_ipv6_ht_insert()
852 if (!ipv6_ht_node) in mlxsw_sp_nve_ipv6_ht_insert()
855 ether_addr_copy(ipv6_ht_node->key.mac, mac); in mlxsw_sp_nve_ipv6_ht_insert()
856 ipv6_ht_node->key.fid_index = fid_index; in mlxsw_sp_nve_ipv6_ht_insert()
857 ipv6_ht_node->addr6 = *addr6; in mlxsw_sp_nve_ipv6_ht_insert()
859 err = rhashtable_insert_fast(&nve->ipv6_ht, &ipv6_ht_node->ht_node, in mlxsw_sp_nve_ipv6_ht_insert()
864 list_add(&ipv6_ht_node->list, &nve->ipv6_addr_list); in mlxsw_sp_nve_ipv6_ht_insert()
869 kfree(ipv6_ht_node); in mlxsw_sp_nve_ipv6_ht_insert()
875 struct mlxsw_sp_nve_ipv6_ht_node *ipv6_ht_node) in mlxsw_sp_nve_ipv6_ht_remove() argument
879 list_del(&ipv6_ht_node->list); in mlxsw_sp_nve_ipv6_ht_remove()
880 rhashtable_remove_fast(&nve->ipv6_ht, &ipv6_ht_node->ht_node, in mlxsw_sp_nve_ipv6_ht_remove()
882 kfree(ipv6_ht_node); in mlxsw_sp_nve_ipv6_ht_remove()
890 struct mlxsw_sp_nve_ipv6_ht_node *ipv6_ht_node; in mlxsw_sp_nve_ipv6_addr_map_replace() local
894 ipv6_ht_node = mlxsw_sp_nve_ipv6_ht_node_lookup(mlxsw_sp, mac, in mlxsw_sp_nve_ipv6_addr_map_replace()
896 if (!ipv6_ht_node) in mlxsw_sp_nve_ipv6_addr_map_replace()
900 mlxsw_sp_ipv6_addr_put(mlxsw_sp, &ipv6_ht_node->addr6); in mlxsw_sp_nve_ipv6_addr_map_replace()
901 ipv6_ht_node->addr6 = *new_addr6; in mlxsw_sp_nve_ipv6_addr_map_replace()
908 struct mlxsw_sp_nve_ipv6_ht_node *ipv6_ht_node; in mlxsw_sp_nve_ipv6_addr_map_del() local
912 ipv6_ht_node = mlxsw_sp_nve_ipv6_ht_node_lookup(mlxsw_sp, mac, in mlxsw_sp_nve_ipv6_addr_map_del()
914 if (WARN_ON(!ipv6_ht_node)) in mlxsw_sp_nve_ipv6_addr_map_del()
917 mlxsw_sp_nve_ipv6_ht_remove(mlxsw_sp, ipv6_ht_node); in mlxsw_sp_nve_ipv6_addr_map_del()
923 struct mlxsw_sp_nve_ipv6_ht_node *ipv6_ht_node, *tmp; in mlxsw_sp_nve_ipv6_addr_flush_by_fid() local
926 list_for_each_entry_safe(ipv6_ht_node, tmp, &nve->ipv6_addr_list, in mlxsw_sp_nve_ipv6_addr_flush_by_fid()
928 if (ipv6_ht_node->key.fid_index != fid_index) in mlxsw_sp_nve_ipv6_addr_flush_by_fid()
931 mlxsw_sp_ipv6_addr_put(mlxsw_sp, &ipv6_ht_node->addr6); in mlxsw_sp_nve_ipv6_addr_flush_by_fid()
932 mlxsw_sp_nve_ipv6_ht_remove(mlxsw_sp, ipv6_ht_node); in mlxsw_sp_nve_ipv6_addr_flush_by_fid()