Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Degress_lgcy.c73 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 …]
Dingress_lgcy.c166 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.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c400 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()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h105 struct mlx5_fc *drop_counter; member
132 struct mlx5_fc *drop_counter; member
/linux-6.1.9/include/net/
Dip_vs.h892 int drop_counter; member
1522 if (--ipvs->drop_counter > 0) in ip_vs_todrop()
1524 ipvs->drop_counter = ipvs->drop_rate; in ip_vs_todrop()
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_ctl.c149 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()
159 ipvs->drop_rate = ipvs->drop_counter in update_defense_level()