Lines Matching refs:mpp_paths
40 static struct mesh_table *mpp_paths; /* Store paths for MPP&MAP */
190 tbl = rcu_dereference(mpp_paths);
356 oldtbl = mpp_paths;
357 newtbl = mesh_table_grow(mpp_paths);
362 rcu_assign_pointer(mpp_paths, newtbl);
407 hash_idx = mesh_table_hash(dst, sdata, mpp_paths);
408 bucket = &mpp_paths->hash_buckets[hash_idx];
410 spin_lock(&mpp_paths->hashwlock[hash_idx]);
420 if (atomic_inc_return(&mpp_paths->entries) >=
421 mpp_paths->mean_chain_len * (mpp_paths->hash_mask + 1))
424 spin_unlock(&mpp_paths->hashwlock[hash_idx]);
433 spin_unlock(&mpp_paths->hashwlock[hash_idx]);
702 mpp_paths = mesh_table_alloc(INIT_PATHS_SIZE_ORDER);
703 if (!mpp_paths) {
707 mpp_paths->free_node = &mesh_path_node_free;
708 mpp_paths->copy_node = &mesh_path_node_copy;
709 mpp_paths->mean_chain_len = MEAN_CHAIN_LEN;
742 mesh_table_free(mpp_paths, true);