]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Fix stats counters
authorNaresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Sun, 11 Jul 2021 13:31:36 +0000 (06:31 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 12 Jul 2021 17:42:27 +0000 (14:42 -0300)
commit6ca73e5a0f5f96778aaea8668c17d8e6971db2de
tree098966ac4df41412b1def4d2a030780c96faa5a8
parentb1b49cbcf8bd66059ed6f80c573a7ff83991d8ef
RDMA/bnxt_re: Fix stats counters

Statistical counters are not incrementing in some adapter versions with
newer FW. This is due to the stats context length mismatch between FW and
driver. Since the L2 driver updates the length correctly, use the stats
length from L2 driver while allocating the DMA'able memory and creating
the stats context.

Fixes: 2e59afbf0b2c ("bnxt_en: Update firmware interface spec to 1.10.1.65.")
Link: https://lore.kernel.org/r/1626010296-6076-1-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/bnxt_re/qplib_res.c
drivers/infiniband/hw/bnxt_re/qplib_res.h