Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.c1035 struct mlx5_ct_counter *shared_counter; in mlx5_tc_ct_shared_counter_get() local
1066 shared_counter = rev_entry->counter; in mlx5_tc_ct_shared_counter_get()
1070 return shared_counter; in mlx5_tc_ct_shared_counter_get()
1077 shared_counter = mlx5_tc_ct_counter_create(ct_priv); in mlx5_tc_ct_shared_counter_get()
1078 if (IS_ERR(shared_counter)) in mlx5_tc_ct_shared_counter_get()
1079 return shared_counter; in mlx5_tc_ct_shared_counter_get()
1081 shared_counter->is_shared = true; in mlx5_tc_ct_shared_counter_get()
1082 refcount_set(&shared_counter->refcount, 1); in mlx5_tc_ct_shared_counter_get()
1083 return shared_counter; in mlx5_tc_ct_shared_counter_get()