Igalia / snabb

Snabb Switch: Fast open source packet processing
Apache License 2.0
47 stars 5 forks source link

Add counter for all received packets #1172

Closed takikawa closed 5 years ago

takikawa commented 5 years ago

Adds a new counter called rxallpackets that uses the TPR register (8.2.3.23.59 in the 82599 datasheet) that tracks received packets "regardless of their length, whether they are erred, regardless on L2 filtering and receive enablement but excluding flow control packets".

Before merging, I'd like to add tests but I'm putting the PR up in case it's useful for debugging.

dpino commented 5 years ago

Closing ticket since this change was aimed for debugging purposes and it's no longer needed.