sonic-net / DASH

Disaggregated APIs for SONiC Hosts
Apache License 2.0
83 stars 89 forks source link

[dash-p4] Refactor global and ENI counter definitions. #568

Closed r12f closed 4 months ago

r12f commented 4 months ago

Moving the global and ENI counters from all over the places to a dedicated file, because they are special and working more like "global" counters, and spread across the pipeline.

This helps us to have a better view and helps us maintaining the ABI compatibility of these counters.

The other counters will go with its table, such as HA set, because they are only used in logic that is related to that single table.

r12f commented 4 months ago

Waiting for the drop counter change to be checked in.

r12f commented 4 months ago

The drop counter P4 update is merged. This PR is ready for review.