Searched refs:drop_counter (Results 1 – 6 of 6) sorted by relevance
72 struct mlx5_fc *drop_counter = NULL; in esw_acl_egress_lgcy_setup() local83 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()
171 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()
78 struct mlx5_fc *drop_counter; member102 struct mlx5_fc *drop_counter; member
2336 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()
892 int drop_counter; member1511 if (--ipvs->drop_counter > 0) in ip_vs_todrop()1513 ipvs->drop_counter = ipvs->drop_rate; in ip_vs_todrop()
148 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()158 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()