Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dsample.c62 sampler_termtbl_create(struct mlx5e_tc_psample *tc_psample) in sampler_termtbl_create() argument
64 struct mlx5_eswitch *esw = tc_psample->esw; in sampler_termtbl_create()
88 tc_psample->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in sampler_termtbl_create()
89 if (IS_ERR(tc_psample->termtbl)) { in sampler_termtbl_create()
90 err = PTR_ERR(tc_psample->termtbl); in sampler_termtbl_create()
97 tc_psample->termtbl_rule = mlx5_add_flow_rules(tc_psample->termtbl, NULL, &act, &dest, 1); in sampler_termtbl_create()
98 if (IS_ERR(tc_psample->termtbl_rule)) { in sampler_termtbl_create()
99 err = PTR_ERR(tc_psample->termtbl_rule); in sampler_termtbl_create()
101 mlx5_destroy_flow_table(tc_psample->termtbl); in sampler_termtbl_create()
109 sampler_termtbl_destroy(struct mlx5e_tc_psample *tc_psample) in sampler_termtbl_destroy() argument
[all …]
Dsample.h41 mlx5e_tc_sample_cleanup(struct mlx5e_tc_psample *tc_psample);
46 mlx5e_tc_sample_offload(struct mlx5e_tc_psample *tc_psample, in mlx5e_tc_sample_offload() argument
53 mlx5e_tc_sample_unoffload(struct mlx5e_tc_psample *tc_psample, in mlx5e_tc_sample_unoffload() argument
62 mlx5e_tc_sample_cleanup(struct mlx5e_tc_psample *tc_psample) {} in mlx5e_tc_sample_cleanup() argument
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.h94 struct mlx5e_tc_psample *tc_psample; member
Den_tc.c258 return uplink_priv->tc_psample; in get_sample_priv()
5137 uplink_priv->tc_psample = mlx5e_tc_sample_init(esw, uplink_priv->post_act); in mlx5e_tc_esw_init()
5181 mlx5e_tc_sample_cleanup(uplink_priv->tc_psample); in mlx5e_tc_esw_init()
5201 mlx5e_tc_sample_cleanup(uplink_priv->tc_psample); in mlx5e_tc_esw_cleanup()