]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Allocate additional memory for all statistics blocks.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 27 Jul 2020 09:40:40 +0000 (05:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 18:47:33 +0000 (11:47 -0700)
commit96a1ef0e59213a3f449e0ca224f3104c9b2b787a
tree51099240dbac16a8996c3c5a53a368a849d60d75
parenta055d7e0c5ae4c08d13e67b1865e2e8ea4a0aa47
bnxt_en: Allocate additional memory for all statistics blocks.

Some of these DMAed hardware counters are not full 64-bit counters and
so we need to accumulate them as they overflow.  Allocate copies of these
DMA statistics memory blocks with the same size for accumulation.  The
hardware counter widths are also counter specific so we allocate
memory for masks that correspond to each counter.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h