Home
last modified time | relevance | path

Searched refs:post_act (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_act.c35 struct mlx5e_post_act *post_act; in mlx5e_tc_post_act_init() local
45 post_act = kzalloc(sizeof(*post_act), GFP_KERNEL); in mlx5e_tc_post_act_init()
46 if (!post_act) { in mlx5e_tc_post_act_init()
50 post_act->ft = mlx5_chains_create_global_table(chains); in mlx5e_tc_post_act_init()
51 if (IS_ERR(post_act->ft)) { in mlx5e_tc_post_act_init()
52 err = PTR_ERR(post_act->ft); in mlx5e_tc_post_act_init()
56 post_act->chains = chains; in mlx5e_tc_post_act_init()
57 post_act->ns_type = ns_type; in mlx5e_tc_post_act_init()
58 post_act->priv = priv; in mlx5e_tc_post_act_init()
59 xa_init_flags(&post_act->ids, XA_FLAGS_ALLOC1); in mlx5e_tc_post_act_init()
[all …]
Dpost_act.h19 mlx5e_tc_post_act_destroy(struct mlx5e_post_act *post_act);
22 mlx5e_tc_post_act_add(struct mlx5e_post_act *post_act, struct mlx5_flow_attr *attr);
25 mlx5e_tc_post_act_del(struct mlx5e_post_act *post_act, struct mlx5e_post_act_handle *handle);
28 mlx5e_tc_post_act_offload(struct mlx5e_post_act *post_act,
32 mlx5e_tc_post_act_unoffload(struct mlx5e_post_act *post_act,
36 mlx5e_tc_post_act_get_ft(struct mlx5e_post_act *post_act);
Dpost_meter.c87 struct mlx5e_post_act *post_act, in mlx5e_post_meter_rules_create() argument
122 dest[0].ft = mlx5e_tc_post_act_get_ft(post_act); in mlx5e_post_meter_rules_create()
166 struct mlx5e_post_act *post_act, in mlx5e_post_meter_init() argument
185 err = mlx5e_post_meter_rules_create(priv, post_meter, post_act, green_counter, in mlx5e_post_meter_init()
Dsample.h37 mlx5e_tc_sample_init(struct mlx5_eswitch *esw, struct mlx5e_post_act *post_act);
56 mlx5e_tc_sample_init(struct mlx5_eswitch *esw, struct mlx5e_post_act *post_act) in mlx5e_tc_sample_init() argument
Dsample.c31 struct mlx5e_post_act *post_act; member
503 ft = mlx5e_tc_post_act_get_ft(tc_psample->post_act); in mlx5e_tc_sample_offload()
617 mlx5e_tc_sample_init(struct mlx5_eswitch *esw, struct mlx5e_post_act *post_act) in mlx5e_tc_sample_init() argument
625 if (IS_ERR_OR_NULL(post_act)) { in mlx5e_tc_sample_init()
626 err = PTR_ERR(post_act); in mlx5e_tc_sample_init()
629 tc_psample->post_act = post_act; in mlx5e_tc_sample_init()
Dmeter.c48 struct mlx5e_post_act *post_act; member
507 struct mlx5e_post_act *post_act) in mlx5e_flow_meters_init() argument
517 if (IS_ERR_OR_NULL(post_act)) { in mlx5e_flow_meters_init()
546 flow_meters->post_act = post_act; in mlx5e_flow_meters_init()
Dpost_meter.h23 struct mlx5e_post_act *post_act,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.h97 struct mlx5e_post_act *post_act);
141 struct mlx5e_post_act *post_act) in mlx5_tc_ct_init() argument
Dtc_ct.c70 struct mlx5e_post_act *post_act; member
835 attr->dest_ft = mlx5e_tc_post_act_get_ft(ct_priv->post_act); in mlx5_tc_ct_entry_add_rule()
1502 dest.ft = mlx5e_tc_post_act_get_ft(ct_priv->post_act); in tc_ct_pre_ct_add_rules()
1984 struct mlx5_flow_table *post_ct = mlx5e_tc_post_act_get_ft(ct_priv->post_act); in mlx5_tc_ct_fs_init()
2048 struct mlx5e_post_act *post_act) in mlx5_tc_ct_init_check_support() argument
2061 if (IS_ERR_OR_NULL(post_act)) { in mlx5_tc_ct_init_check_support()
2104 struct mlx5e_post_act *post_act) in mlx5_tc_ct_init() argument
2112 err = mlx5_tc_ct_init_check_support(priv, ns_type, post_act); in mlx5_tc_ct_init()
2160 ct_priv->post_act = post_act; in mlx5_tc_ct_init()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c83 struct mlx5e_post_act *post_act; member
304 uplink_priv->post_act); in mlx5e_get_flow_meters()
359 return uplink_priv->post_act; in get_post_action()
362 return tc->post_act; in get_post_action()
404 struct mlx5e_post_act *post_act = get_post_action(priv); in mlx5e_tc_add_flow_meter() local
416 post_meter = mlx5e_post_meter_init(priv, ns_type, post_act, meter->green_counter, in mlx5e_tc_add_flow_meter()
3674 struct mlx5e_post_act *post_act = get_post_action(flow->priv); in mlx5e_tc_unoffload_flow_post_acts() local
3681 mlx5e_tc_post_act_unoffload(post_act, attr->post_act_handle); in mlx5e_tc_unoffload_flow_post_acts()
3689 struct mlx5e_post_act *post_act = get_post_action(flow->priv); in free_flow_post_acts() local
3698 mlx5e_tc_post_act_del(post_act, attr->post_act_handle); in free_flow_post_acts()
[all …]
Den_rep.h89 struct mlx5e_post_act *post_act; member
DMakefile49 en/tc/post_act.o en/tc/int_port.o en/tc/meter.o \