Searched refs:drop_counter (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | egress_lgcy.c | 73 struct mlx5_fc *drop_counter = NULL; in esw_acl_egress_lgcy_setup() local 84 if (vport->egress.legacy.drop_counter) { in esw_acl_egress_lgcy_setup() 85 drop_counter = vport->egress.legacy.drop_counter; in esw_acl_egress_lgcy_setup() 87 drop_counter = mlx5_fc_create(esw->dev, false); in esw_acl_egress_lgcy_setup() 88 if (IS_ERR(drop_counter)) { in esw_acl_egress_lgcy_setup() 91 vport->vport, PTR_ERR(drop_counter)); in esw_acl_egress_lgcy_setup() 92 drop_counter = NULL; in esw_acl_egress_lgcy_setup() 94 vport->egress.legacy.drop_counter = drop_counter; in esw_acl_egress_lgcy_setup() 135 if (drop_counter) { in esw_acl_egress_lgcy_setup() 138 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup() [all …]
|
D | ingress_lgcy.c | 166 if (vport->ingress.legacy.drop_counter) { in esw_acl_ingress_lgcy_setup() 167 counter = vport->ingress.legacy.drop_counter; in esw_acl_ingress_lgcy_setup() 176 vport->ingress.legacy.drop_counter = counter; in esw_acl_ingress_lgcy_setup() 301 if (vport->ingress.legacy.drop_counter) { in esw_acl_ingress_lgcy_cleanup() 302 mlx5_fc_destroy(esw->dev, vport->ingress.legacy.drop_counter); in esw_acl_ingress_lgcy_cleanup() 303 vport->ingress.legacy.drop_counter = NULL; in esw_acl_ingress_lgcy_cleanup()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_meter.c | 118 struct mlx5_fc *drop_counter) in mlx5e_post_meter_add_rule() argument 125 attr->counter = drop_counter; in mlx5e_post_meter_add_rule() 150 struct mlx5_fc *drop_counter, in mlx5e_post_meter_rate_rules_create() argument 167 act_counter, drop_counter); in mlx5e_post_meter_rate_rules_create() 180 act_counter, drop_counter); in mlx5e_post_meter_rate_rules_create() 253 struct mlx5_fc *drop_counter, in mlx5e_post_meter_rate_create() argument 277 act_counter, drop_counter, in mlx5e_post_meter_rate_create() 338 struct mlx5_fc *drop_counter, in mlx5e_post_meter_mtu_create() argument 356 act_counter, drop_counter); in mlx5e_post_meter_mtu_create() 371 act_counter, drop_counter); in mlx5e_post_meter_mtu_create() [all …]
|
D | post_meter.h | 39 struct mlx5_fc *drop_counter,
|
D | meter.c | 263 meter->drop_counter = counter; in __mlx5e_flow_meter_alloc() 323 mlx5_fc_destroy(mdev, meter->drop_counter); in __mlx5e_flow_meter_alloc() 338 mlx5_fc_destroy(mdev, meter->drop_counter); in __mlx5e_flow_meter_free() 589 mlx5_fc_query_cached(meter->drop_counter, &bytes2, &packets2, &lastuse2); in mlx5e_tc_meter_get_stats()
|
D | meter.h | 37 struct mlx5_fc *drop_counter; member
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | legacy.c | 398 if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_counter)) in mlx5_esw_query_vport_drop_stats() 399 mlx5_fc_query(dev, vport->egress.legacy.drop_counter, in mlx5_esw_query_vport_drop_stats() 402 if (vport->ingress.legacy.drop_counter) in mlx5_esw_query_vport_drop_stats() 403 mlx5_fc_query(dev, vport->ingress.legacy.drop_counter, in mlx5_esw_query_vport_drop_stats()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.h | 107 struct mlx5_fc *drop_counter; member 140 struct mlx5_fc *drop_counter; member
|
D | en_tc.c | 460 meter->act_counter, meter->drop_counter, in mlx5e_tc_add_flow_meter()
|
/linux-6.6.21/include/net/ |
D | ip_vs.h | 956 int drop_counter; member 1654 if (--ipvs->drop_counter > 0) in ip_vs_todrop() 1656 ipvs->drop_counter = ipvs->drop_rate; in ip_vs_todrop()
|
/linux-6.6.21/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 148 ipvs->drop_rate = ipvs->drop_counter in update_defense_level() 158 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()
|