opnsense-src/sys/dev/bnxt
Sumit Saxena 4b80857790 if_bnxt: add support for HW generic stats
HW generic stats provide information about PCIe transactions and
out-of-order doorbell writes, useful for debug. Allocate a DMA buffer
for them (disabling BNXT_FW_CAP_GENERIC_STATS if the allocation
fails), fetch them via HWRM_STAT_GENERIC_QSTATS once per admin-status
tick on P5+ chips, and expose them to userspace under
dev.bnxt.<unit>.hwstats.generic_stats.* via sysctl.

Reviewed by:    gallatin
MFC after:      2 weeks
Sponsored by:   Broadcom Inc.
Differential Revision:  https://reviews.freebsd.org/D58614

(cherry picked from commit d1619865da1cd4c5b557158b4bbf666e0f7f040b)
2026-11-09 22:07:40 +01:00
..
bnxt_en if_bnxt: add support for HW generic stats 2026-11-09 22:07:40 +01:00
bnxt_re if_bnxt/bnxt_re: Update hsi headers 2026-10-07 08:00:53 +02:00