Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dpost_act.c45 post_act = kzalloc(sizeof(*post_act), GFP_KERNEL); in mlx5e_tc_post_act_init()
46 if (!post_act) { in mlx5e_tc_post_act_init()
56 post_act->chains = chains; in mlx5e_tc_post_act_init()
58 post_act->priv = priv; in mlx5e_tc_post_act_init()
60 return post_act; in mlx5e_tc_post_act_init()
63 kfree(post_act); in mlx5e_tc_post_act_init()
75 mlx5_chains_destroy_global_table(post_act->chains, post_act->ft); in mlx5e_tc_post_act_destroy()
76 kfree(post_act); in mlx5e_tc_post_act_destroy()
86 if (IS_ERR(post_act)) in mlx5e_tc_post_act_offload()
117 if (IS_ERR(post_act)) in mlx5e_tc_post_act_add()
[all …]
H A 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 *post_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);
H A Dpost_meter.c148 struct mlx5e_post_act *post_act, in mlx5e_post_meter_rate_rules_create() argument
251 struct mlx5e_post_act *post_act, in mlx5e_post_meter_rate_create() argument
276 err = mlx5e_post_meter_rate_rules_create(priv, post_meter, post_act, in mlx5e_post_meter_rate_create()
336 struct mlx5e_post_act *post_act, in mlx5e_post_meter_mtu_create() argument
395 struct mlx5e_post_act *post_act, in mlx5e_post_meter_init() argument
411 err = mlx5e_post_meter_mtu_create(priv, ns_type, post_act, in mlx5e_post_meter_init()
416 err = mlx5e_post_meter_rate_create(priv, ns_type, post_act, in mlx5e_post_meter_init()
H A 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
H A 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()
H A Dmeter.c48 struct mlx5e_post_act *post_act; member
517 struct mlx5e_post_act *post_act) in mlx5e_flow_meters_init() argument
527 if (IS_ERR_OR_NULL(post_act)) { in mlx5e_flow_meters_init()
556 flow_meters->post_act = post_act; in mlx5e_flow_meters_init()
H A Dpost_meter.h36 struct mlx5e_post_act *post_act,
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.h100 struct mlx5e_post_act *post_act);
137 struct mlx5e_post_act *post_act) in mlx5_tc_ct_init() argument
H A Dtc_ct.c72 struct mlx5e_post_act *post_act; member
827 attr->dest_ft = mlx5e_tc_post_act_get_ft(ct_priv->post_act); in mlx5_tc_ct_entry_add_rule()
1610 dest.ft = mlx5e_tc_post_act_get_ft(ct_priv->post_act); in tc_ct_pre_ct_add_rules()
2046 struct mlx5_flow_table *post_ct = mlx5e_tc_post_act_get_ft(ct_priv->post_act); in mlx5_tc_ct_fs_init()
2110 struct mlx5e_post_act *post_act) in mlx5_tc_ct_init_check_support() argument
2116 if (IS_ERR_OR_NULL(post_act)) { in mlx5_tc_ct_init_check_support()
2159 struct mlx5e_post_act *post_act) in mlx5_tc_ct_init() argument
2167 err = mlx5_tc_ct_init_check_support(priv, ns_type, post_act); in mlx5_tc_ct_init()
2216 ct_priv->post_act = post_act; in mlx5_tc_ct_init()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c86 struct mlx5e_post_act *post_act; member
340 uplink_priv->post_act); in mlx5e_get_flow_meters()
395 return uplink_priv->post_act; in get_post_action()
398 return tc->post_act; in get_post_action()
447 if (IS_ERR(post_act)) in mlx5e_tc_add_flow_meter()
448 return PTR_ERR(post_act); in mlx5e_tc_add_flow_meter()
3748 if (IS_ERR(post_act)) in set_branch_dest_ft()
3749 return PTR_ERR(post_act); in set_branch_dest_ft()
3837 struct mlx5e_post_act *post_act; in dec_jump_count() local
3840 post_act = get_post_action(priv); in dec_jump_count()
[all …]
H A Den_rep.h89 struct mlx5e_post_act *post_act; member
H A DMakefile49 en/tc/post_act.o en/tc/int_port.o en/tc/meter.o \