Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmlx5hws_action.c82 struct mlx5hws_action_shared_stc *shared_stc; in hws_action_get_shared_stc_nic() local
86 if (ctx->common_res[tbl_type].shared_stc[stc_type]) { in hws_action_get_shared_stc_nic()
87 ctx->common_res[tbl_type].shared_stc[stc_type]->refcount++; in hws_action_get_shared_stc_nic()
92 shared_stc = kzalloc(sizeof(*shared_stc), GFP_KERNEL); in hws_action_get_shared_stc_nic()
93 if (!shared_stc) { in hws_action_get_shared_stc_nic()
121 &shared_stc->stc_chunk); in hws_action_get_shared_stc_nic()
127 ctx->common_res[tbl_type].shared_stc[stc_type] = shared_stc; in hws_action_get_shared_stc_nic()
128 ctx->common_res[tbl_type].shared_stc[stc_type]->refcount = 1; in hws_action_get_shared_stc_nic()
135 kfree(shared_stc); in hws_action_get_shared_stc_nic()
172 struct mlx5hws_action_shared_stc *shared_stc; in hws_action_put_shared_stc() local
[all …]
H A Dmlx5hws_context.h21 struct mlx5hws_action_shared_stc *shared_stc[MLX5HWS_CONTEXT_SHARED_STC_MAX]; member