Skip to content

PfcWdAclHandler should query acl stats instead of queue stats for accuracy #3925

@pinky-nexthop

Description

@pinky-nexthop

For some chips, the egress acl hits do not show up as queue drops. Hence the pfcwd stats look like.

 QUEUE    STATUS    STORM DETECTED/RESTORED    TX OK/DROP    RX OK/DROP    TX LAST OK/DROP    RX LAST OK/DROP
------------  --------  -------------------------  ------------  ------------  -----------------  -----------------
Ethernet16:4   stormed                      1/0         100/0           0/0              100/0                0/0

Current PfcWdAclHandler queries the following stats which can be inaccurate as show above.

        SAI_QUEUE_STAT_PACKETS,
        SAI_QUEUE_STAT_DROPPED_PACKETS

Since Acls are programmed to get to take the action, acl counters - SAI_ACL_COUNTER_ATTR_PACKETS should be used to show the egress/ingress drops.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions