]> Gentwo Git Trees - linux/.git/commit
bnxt_en: Enhance TX pri counters
authorMichael Chan <michael.chan@broadcom.com>
Wed, 26 Nov 2025 21:56:42 +0000 (13:56 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 02:59:28 +0000 (18:59 -0800)
commitcaa343e9a4a171db045c8e734d68cb10ad0dd65c
tree3b1cfd50ec5dfe2751fbed7f30f782c580a2d539
parent61dbc61a34c912e4a5559cfc3bb966d9a32caf33
bnxt_en: Enhance TX pri counters

The priority packet and byte counters in ethtool -S are returned by
the driver based on the pri2cos mapping.  The assumption is that each
priority is mapped to one and only one hardware CoS queue.  In a
special RoCE configuration, the FW uses combined CoS queue 0 and CoS
queue 1 for the priority mapped to CoS queue 0.  In this special
case, we need to add the CoS queue 0 and CoS queue 1 counters for
the priority packet and byte counters.

Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20251126215648.1885936-2-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c