Home
last modified time | relevance | path

Searched refs:post_meter (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dpost_meter.c43 return post_meter->rate_steering_table.ft; in mlx5e_post_meter_get_ft()
49 return post_meter->mtu_tables.green_table.ft; in mlx5e_post_meter_get_mtu_true_ft()
55 return post_meter->mtu_tables.red_table.ft; in mlx5e_post_meter_get_mtu_false_ft()
261 post_meter->type = MLX5E_POST_METER_RATE; in mlx5e_post_meter_rate_create()
270 post_meter->rate_steering_table.ft = ft; in mlx5e_post_meter_rate_create()
348 post_meter->type = MLX5E_POST_METER_MTU; in mlx5e_post_meter_mtu_create()
405 post_meter = kzalloc(sizeof(*post_meter), GFP_KERNEL); in mlx5e_post_meter_init()
406 if (!post_meter) in mlx5e_post_meter_init()
427 return post_meter; in mlx5e_post_meter_init()
430 kfree(post_meter); in mlx5e_post_meter_init()
[all …]
H A Dpost_meter.h25 mlx5e_post_meter_get_ft(struct mlx5e_post_meter_priv *post_meter);
28 mlx5e_post_meter_get_mtu_true_ft(struct mlx5e_post_meter_priv *post_meter);
31 mlx5e_post_meter_get_mtu_false_ft(struct mlx5e_post_meter_priv *post_meter);
44 mlx5e_post_meter_cleanup(struct mlx5_eswitch *esw, struct mlx5e_post_meter_priv *post_meter);
49 mlx5e_post_meter_get_mtu_true_ft(struct mlx5e_post_meter_priv *post_meter) in mlx5e_post_meter_get_mtu_true_ft() argument
55 mlx5e_post_meter_get_mtu_false_ft(struct mlx5e_post_meter_priv *post_meter) in mlx5e_post_meter_get_mtu_false_ft() argument
H A Dmeter.h43 struct mlx5e_post_meter_priv *post_meter; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A DMakefile50 en/tc/post_meter.o en/tc/act_stats.o
H A Den_tc.c442 struct mlx5e_post_meter_priv *post_meter; in mlx5e_tc_add_flow_meter() local
458 post_meter = mlx5e_post_meter_init(priv, ns_type, post_act, in mlx5e_tc_add_flow_meter()
462 if (IS_ERR(post_meter)) { in mlx5e_tc_add_flow_meter()
468 attr->meter_attr.post_meter = post_meter; in mlx5e_tc_add_flow_meter()
469 attr->dest_ft = mlx5e_post_meter_get_ft(post_meter); in mlx5e_tc_add_flow_meter()
476 return PTR_ERR(post_meter); in mlx5e_tc_add_flow_meter()
482 mlx5e_post_meter_cleanup(esw, attr->meter_attr.post_meter); in mlx5e_tc_del_flow_meter()
H A Deswitch_offloads.c206 dest[i].range.hit_ft = mlx5e_post_meter_get_mtu_true_ft(meter->post_meter); in esw_setup_mtu_dest()
207 dest[i].range.miss_ft = mlx5e_post_meter_get_mtu_false_ft(meter->post_meter); in esw_setup_mtu_dest()