Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c12 struct mlx5_flow_table *termtbl; member
88 if (IS_ERR(tt->termtbl)) { in mlx5_eswitch_termtbl_create()
89 err = PTR_ERR(tt->termtbl); in mlx5_eswitch_termtbl_create()
94 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act, in mlx5_eswitch_termtbl_create()
104 err2 = mlx5_destroy_flow_table(tt->termtbl); in mlx5_eswitch_termtbl_create()
173 mlx5_destroy_flow_table(tt->termtbl); in mlx5_eswitch_termtbl_put()
283 attr->dests[num_vport_dests].termtbl = tt; in mlx5_eswitch_add_termtbl_rule()
288 dest[i].ft = tt->termtbl; in mlx5_eswitch_add_termtbl_rule()
313 struct mlx5_termtbl_handle *tt = attr->dests[curr_dest].termtbl; in mlx5_eswitch_add_termtbl_rule()
315 attr->dests[curr_dest].termtbl = NULL; in mlx5_eswitch_add_termtbl_rule()
[all …]
H A Deswitch.h533 struct mlx5_termtbl_handle *termtbl; member
H A Deswitch_offloads.c885 if (esw_attr->dests[i].termtbl) in __mlx5_eswitch_del_rule()
886 mlx5_eswitch_termtbl_put(esw, esw_attr->dests[i].termtbl); in __mlx5_eswitch_del_rule()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c25 struct mlx5_flow_table *termtbl; member
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()
101 mlx5_destroy_flow_table(tc_psample->termtbl); in sampler_termtbl_create()
112 mlx5_destroy_flow_table(tc_psample->termtbl); in sampler_termtbl_destroy()
192 sampler->sample_table_id = tc_psample->termtbl->id; in sampler_get()