Skip to content

[feature wanted] thread safe method to flush counters in dataplane #208

Description

@w1nda

We need a thread safe method to flush counters in dataplane, as there may many thread sharing the same dataplane instance:(

dataplane_instance = None

Counters:

ptf/src/ptf/dataplane.py

Lines 571 to 575 in c554f83

# counters of received packets (may include packets which were dropped due to queue overflow)
self.rx_counters = defaultdict(int)
# counters of transmited packets
self.tx_counters = defaultdict(int)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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