OSDN Git Service

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)
commitd752d0536c979068084e0c60ff506c07e1cf613e
treeb2c14d9451b209564510db97591428842e429590
parenta37120b22e540b4eb068addf9be3f63b64dca690
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