Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws.c27 struct mlx5_fs_hws_actions_pool *hws_pool = &fs_ctx->hws_pool; in mlx5_fs_init_hws_actions_pool() local
33 hws_pool->tag_action = mlx5hws_action_create_tag(ctx, flags); in mlx5_fs_init_hws_actions_pool()
34 if (!hws_pool->tag_action) in mlx5_fs_init_hws_actions_pool()
36 hws_pool->pop_vlan_action = mlx5hws_action_create_pop_vlan(ctx, flags); in mlx5_fs_init_hws_actions_pool()
37 if (!hws_pool->pop_vlan_action) in mlx5_fs_init_hws_actions_pool()
39 hws_pool->push_vlan_action = mlx5hws_action_create_push_vlan(ctx, flags); in mlx5_fs_init_hws_actions_pool()
40 if (!hws_pool->push_vlan_action) in mlx5_fs_init_hws_actions_pool()
42 hws_pool->drop_action = mlx5hws_action_create_dest_drop(ctx, flags); in mlx5_fs_init_hws_actions_pool()
43 if (!hws_pool->drop_action) in mlx5_fs_init_hws_actions_pool()
46 hws_pool->decapl2_action = in mlx5_fs_init_hws_actions_pool()
[all …]
H A Dfs_hws_pools.c165 static void mlx5_hws_pool_update_threshold(struct mlx5_fs_pool *hws_pool) in mlx5_hws_pool_update_threshold() argument
167 hws_pool->threshold = min_t(int, MLX5_FS_HWS_POOL_MAX_THRESHOLD, in mlx5_hws_pool_update_threshold()
168 hws_pool->used_units / MLX5_FS_HWS_POOL_USED_BUFF_RATIO); in mlx5_hws_pool_update_threshold()