Skip to content

Commit

Permalink
API to get packet integrity value (and not just count)
Browse files Browse the repository at this point in the history
Summary: As titled

Reviewed By: shri-khare

Differential Revision: D50800930

fbshipit-source-id: 040bbb754da3b7b3632cb83952c9c7ed8af25679
  • Loading branch information
Jasmeet Bagga authored and facebook-github-bot committed Oct 30, 2023
1 parent bb22d60 commit fd32ecf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fboss/agent/hw/HwSwitchFb303Stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ int64_t HwSwitchFb303Stats::getDramDequeuedBytes() const {
return getCumulativeValue(dramDequeuedBytes_);
}

int64_t HwSwitchFb303Stats::getPacketIntegrityDrops() const {
return getCumulativeValue(packetIntegrityDrops_);
}

HwAsicErrors HwSwitchFb303Stats::getHwAsicErrors() const {
HwAsicErrors asicErrors;
asicErrors.parityErrors() = getCumulativeValue(parityErrors_);
Expand Down
1 change: 1 addition & 0 deletions fboss/agent/hw/HwSwitchFb303Stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class HwSwitchFb303Stats {
int64_t getPacketIntegrityDropsCount() const {
return packetIntegrityDrops_.count();
}
int64_t getPacketIntegrityDrops() const;
int64_t getDramEnqueuedBytes() const;
int64_t getDramDequeuedBytes() const;

Expand Down

0 comments on commit fd32ecf

Please sign in to comment.