Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c88 if (IS_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()
485 if (IS_ERR_OR_NULL(tc_psample)) in mlx5e_tc_sample_offload()
499 esw = tc_psample->esw; in mlx5e_tc_sample_offload()
602 esw = tc_psample->esw; in mlx5e_tc_sample_unoffload()
622 tc_psample = kzalloc(sizeof(*tc_psample), GFP_KERNEL); in mlx5e_tc_sample_init()
623 if (!tc_psample) in mlx5e_tc_sample_init()
630 tc_psample->esw = esw; in mlx5e_tc_sample_init()
638 return tc_psample; in mlx5e_tc_sample_init()
641 kfree(tc_psample); in mlx5e_tc_sample_init()
[all …]
H A 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
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rep.h91 struct mlx5e_tc_psample *tc_psample; member
H A Den_tc.c377 return uplink_priv->tc_psample; in get_sample_priv()
5312 uplink_priv->tc_psample = mlx5e_tc_sample_init(esw, uplink_priv->post_act); in mlx5e_tc_esw_init()
5364 mlx5e_tc_sample_cleanup(uplink_priv->tc_psample); in mlx5e_tc_esw_init()
5390 mlx5e_tc_sample_cleanup(uplink_priv->tc_psample); in mlx5e_tc_esw_cleanup()