l_inconst->cache[MLX5_LIST_GLOBAL] = gc;
LIST_INIT(&l_inconst->cache[MLX5_LIST_GLOBAL]->h);
}
- DRV_LOG(DEBUG, "mlx5 list %s initialized.", l_const->name);
return 0;
}
mlx5_free(list);
return NULL;
}
+ DRV_LOG(DEBUG, "mlx5 list %s was created.", name);
return list;
}
l_const->cb_clone_free(l_const->ctx, entry);
else
l_const->cb_remove(l_const->ctx, entry);
- } else if (likely(lcore_idx != -1)) {
+ } else {
__atomic_add_fetch(&l_inconst->cache[entry->lcore_idx]->inv_cnt,
1, __ATOMIC_RELAXED);
- } else {
- return 0;
}
if (!l_const->lcores_share) {
__atomic_sub_fetch(&l_inconst->count, 1, __ATOMIC_RELAXED);