Page MenuHomeFreeBSD

bnxt_en: Use hardware statistics for IFCOUNTERS
Needs ReviewPublic

Authored by chandrakanth.patil_broadcom.com on Aug 21 2025, 4:13 PM.
Tags
None
Referenced Files
F158202203: D52091.diff
Fri, May 29, 6:07 PM
Unknown Object (File)
Tue, May 19, 5:41 PM
Unknown Object (File)
Mon, May 18, 5:58 AM
Unknown Object (File)
Mon, May 18, 5:58 AM
Unknown Object (File)
Thu, May 14, 10:20 PM
Unknown Object (File)
Apr 24 2026, 2:21 AM
Unknown Object (File)
Apr 15 2026, 2:13 PM
Unknown Object (File)
Apr 8 2026, 10:16 PM
Subscribers
None

Details

Summary

By default, IFCOUNTERS are maintained by IFLIB, which lacks visibility into
packets actually transmitted or received on the wire. This causes network
monitoring tools like nstat to report inaccurate traffic statistics.

This patch fixes the issue by populating IFCOUNTERS from the NIC-provided hardware
statistics (HWSTATS). With this change, tools such as nstat now report correct packet
counters, aligning observed traffic with real hardware activity.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped