]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Retrieve hardware counter masks from firmware if available.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 27 Jul 2020 09:40:41 +0000 (05:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 18:47:33 +0000 (11:47 -0700)
commitf676b70b714627ba7f2da19089a89e716fee8ecd
treeb2c14d9451b209564510db97591428842e429590
parent96a1ef0e59213a3f449e0ca224f3104c9b2b787a
bnxt_en: Retrieve hardware counter masks from firmware if available.

Newer firmware has a new call HWRM_FUNC_QSTATS_EXT to retrieve the
masks of all ring counters.  Make this call when supported to
initialize the hardware masks of all ring counters.  If the call
is not available, assume 48-bit ring counter masks on P5 chips.

Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c