Skip to content

Clear TX statistics in ixgbe driver#2

Open
alexanderstephan wants to merge 1 commit intotumi8:v22.11from
alexanderstephan:ixgbe-clear-tx
Open

Clear TX statistics in ixgbe driver#2
alexanderstephan wants to merge 1 commit intotumi8:v22.11from
alexanderstephan:ixgbe-clear-tx

Conversation

@alexanderstephan
Copy link

This pull request adds functionality to clear transmit (TX) statistics for network devices, ensuring both hardware and software counters are reset. The main changes involve introducing a new method to clear TX stats at the device level and integrating this capability into the TX counter object.

  • Added dev:clearTxStats() in lua/driver/ixgbe.lua to clear hardware registers and reset software TX counters.
  • Added devTxCounter:clearThroughput() in lua/stats.lua to call the device's TX stats clearing method, and updated mod:newDevTxCounter() to invoke this during initialization.

Why is this necessary?

To obtain independent, correct statistics that are not influenced by the previous run.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant