Home
last modified time | relevance | path

Searched refs:cached_definer (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
Dmlx5hws_definer.c1978 struct mlx5hws_definer_cache_item *cached_definer; in mlx5hws_definer_get_obj() local
1983 list_for_each_entry(cached_definer, &cache->list_head, list_node) { in mlx5hws_definer_get_obj()
1984 if (mlx5hws_definer_compare(&cached_definer->definer, definer)) in mlx5hws_definer_get_obj()
1988 list_del_init(&cached_definer->list_node); in mlx5hws_definer_get_obj()
1989 list_add(&cached_definer->list_node, &cache->list_head); in mlx5hws_definer_get_obj()
1990 cached_definer->refcount++; in mlx5hws_definer_get_obj()
1991 return cached_definer->definer.obj_id; in mlx5hws_definer_get_obj()
2003 cached_definer = kzalloc(sizeof(*cached_definer), GFP_KERNEL); in mlx5hws_definer_get_obj()
2004 if (!cached_definer) in mlx5hws_definer_get_obj()
2007 memcpy(&cached_definer->definer, definer, sizeof(*definer)); in mlx5hws_definer_get_obj()
[all …]