Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dsample.c503 struct mlx5e_sample_attr *sample_attr; in mlx5e_tc_sample_offload() local
523 sample_attr = attr->sample_attr; in mlx5e_tc_sample_offload()
524 sample_attr->sample_flow = sample_flow; in mlx5e_tc_sample_offload()
550 sample_flow->sampler = sampler_get(tc_psample, sample_attr->rate, default_tbl_id); in mlx5e_tc_sample_offload()
558 restore_obj.sample.group_id = sample_attr->group_num; in mlx5e_tc_sample_offload()
559 restore_obj.sample.rate = sample_attr->rate; in mlx5e_tc_sample_offload()
560 restore_obj.sample.trunc_size = sample_attr->trunc_size; in mlx5e_tc_sample_offload()
565 sample_attr->restore_obj_id = obj_id; in mlx5e_tc_sample_offload()
594 pre_attr->sample_attr = attr->sample_attr; in mlx5e_tc_sample_offload()
595 sample_attr->sampler_id = sample_flow->sampler->sampler_id; in mlx5e_tc_sample_offload()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.h73 struct mlx5e_sample_attr *sample_attr; member
Den_tc.c1562 kfree(attr->sample_attr); in mlx5e_tc_del_fdb_flow()
3861 struct mlx5e_sample_attr sample_attr = {}; in parse_tc_fdb_actions() local
4141 sample_attr.rate = act->sample.rate; in parse_tc_fdb_actions()
4142 sample_attr.group_num = act->sample.psample_group->group_num; in parse_tc_fdb_actions()
4144 sample_attr.trunc_size = act->sample.trunc_size; in parse_tc_fdb_actions()
4202 attr->sample_attr = kzalloc(sizeof(*attr->sample_attr), GFP_KERNEL); in parse_tc_fdb_actions()
4203 if (!attr->sample_attr) in parse_tc_fdb_actions()
4205 *attr->sample_attr = sample_attr; in parse_tc_fdb_actions()
Deswitch_offloads.c195 dest[i].sampler_id = attr->sample_attr->sampler_id; in esw_setup_sampler_dest()