]> 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)
commitefda6413eb52dde7a54e53697db9f94d9f6cbf1e
treeb2c14d9451b209564510db97591428842e429590
parentd6629aca5e05270faa14f0d5ad43bac366d7807e
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