Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Degress_lgcy.c72 struct mlx5_fc *drop_counter = NULL; in esw_acl_egress_lgcy_setup() local
83 drop_counter = mlx5_fc_create(esw->dev, false); in esw_acl_egress_lgcy_setup()
84 if (IS_ERR(drop_counter)) in esw_acl_egress_lgcy_setup()
87 vport->vport, PTR_ERR(drop_counter)); in esw_acl_egress_lgcy_setup()
88 vport->egress.legacy.drop_counter = drop_counter; in esw_acl_egress_lgcy_setup()
127 if (!IS_ERR_OR_NULL(drop_counter)) { in esw_acl_egress_lgcy_setup()
130 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup()
166 if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_counter)) { in esw_acl_egress_lgcy_cleanup()
167 mlx5_fc_destroy(esw->dev, vport->egress.legacy.drop_counter); in esw_acl_egress_lgcy_cleanup()
168 vport->egress.legacy.drop_counter = NULL; in esw_acl_egress_lgcy_cleanup()
Dingress_lgcy.c171 vport->ingress.legacy.drop_counter = counter; in esw_acl_ingress_lgcy_setup()
276 if (vport->ingress.legacy.drop_counter) { in esw_acl_ingress_lgcy_cleanup()
277 mlx5_fc_destroy(esw->dev, vport->ingress.legacy.drop_counter); in esw_acl_ingress_lgcy_cleanup()
278 vport->ingress.legacy.drop_counter = NULL; in esw_acl_ingress_lgcy_cleanup()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h78 struct mlx5_fc *drop_counter; member
102 struct mlx5_fc *drop_counter; member
Deswitch.c2336 if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_counter)) in mlx5_eswitch_query_vport_drop_stats()
2337 mlx5_fc_query(dev, vport->egress.legacy.drop_counter, in mlx5_eswitch_query_vport_drop_stats()
2340 if (vport->ingress.legacy.drop_counter) in mlx5_eswitch_query_vport_drop_stats()
2341 mlx5_fc_query(dev, vport->ingress.legacy.drop_counter, in mlx5_eswitch_query_vport_drop_stats()
/Linux-v5.10/include/net/
Dip_vs.h892 int drop_counter; member
1511 if (--ipvs->drop_counter > 0) in ip_vs_todrop()
1513 ipvs->drop_counter = ipvs->drop_rate; in ip_vs_todrop()
/Linux-v5.10/net/netfilter/ipvs/
Dip_vs_ctl.c148 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()
158 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()