Searched refs:drop_counter (Results 1 – 6 of 6) sorted by relevance
73 struct mlx5_fc *drop_counter = NULL; in esw_acl_egress_lgcy_setup() local84 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 …]
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()
400 if (!IS_ERR_OR_NULL(vport->egress.legacy.drop_counter)) in mlx5_esw_query_vport_drop_stats()401 mlx5_fc_query(dev, vport->egress.legacy.drop_counter, in mlx5_esw_query_vport_drop_stats()404 if (vport->ingress.legacy.drop_counter) in mlx5_esw_query_vport_drop_stats()405 mlx5_fc_query(dev, vport->ingress.legacy.drop_counter, in mlx5_esw_query_vport_drop_stats()
105 struct mlx5_fc *drop_counter; member132 struct mlx5_fc *drop_counter; member
892 int drop_counter; member1522 if (--ipvs->drop_counter > 0) in ip_vs_todrop()1524 ipvs->drop_counter = ipvs->drop_rate; in ip_vs_todrop()
149 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()159 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()