Home
last modified time | relevance | path

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

/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()
/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()
/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h105 struct mlx5_fc *drop_counter; member
132 struct mlx5_fc *drop_counter; member