]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnxt_en: Add pcie_stat_len to struct bp
authorShruti Parab <shruti.parab@broadcom.com>
Tue, 19 Aug 2025 16:39:17 +0000 (09:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Aug 2025 02:34:07 +0000 (19:34 -0700)
commitb530173d3c8adbe2921240cd3bce06053ab47d27
tree2d9edb418e004220b766ba99a70ede4f08a006c8
parent1cc174d33a1f9acfd840014b6ded874aa12edc6c
bnxt_en: Add pcie_stat_len to struct bp

Add this length field to capture the length of the pcie stats structure
supported by the FW.  This length will be determined in
bnxt_ethtool_init().  The minimum of this FW length and the length
known to the driver will determine the actual ethtool -d length.

Suggested-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Shruti Parab <shruti.parab@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250819163919.104075-4-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c