Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dsample.c61 sampler_termtbl_create(struct mlx5e_tc_psample *tc_psample) in sampler_termtbl_create() argument
63 struct mlx5_eswitch *esw = tc_psample->esw; in sampler_termtbl_create()
87 tc_psample->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in sampler_termtbl_create()
88 if (IS_ERR(tc_psample->termtbl)) { in sampler_termtbl_create()
89 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.h40 mlx5e_tc_sample_cleanup(struct mlx5e_tc_psample *tc_psample);
45 mlx5e_tc_sample_offload(struct mlx5e_tc_psample *tc_psample, in mlx5e_tc_sample_offload() argument
51 mlx5e_tc_sample_unoffload(struct mlx5e_tc_psample *tc_psample, in mlx5e_tc_sample_unoffload() argument
60 mlx5e_tc_sample_cleanup(struct mlx5e_tc_psample *tc_psample) {} in mlx5e_tc_sample_cleanup() argument
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.h91 struct mlx5e_tc_psample *tc_psample; member
Den_tc.c377 return uplink_priv->tc_psample; in get_sample_priv()
5415 uplink_priv->tc_psample = mlx5e_tc_sample_init(esw, uplink_priv->post_act); in mlx5e_tc_esw_init()
5467 mlx5e_tc_sample_cleanup(uplink_priv->tc_psample); in mlx5e_tc_esw_init()
5493 mlx5e_tc_sample_cleanup(uplink_priv->tc_psample); in mlx5e_tc_esw_cleanup()