summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/bnxt_re/qplib_res.h
diff options
context:
space:
mode:
authorNaresh Kumar PBS <nareshkumar.pbs@broadcom.com>2021-07-11 06:31:36 -0700
committerJason Gunthorpe <jgg@nvidia.com>2021-07-12 14:42:27 -0300
commit0c23af52ccd1605926480b5dfd1dd857ef604611 (patch)
tree098966ac4df41412b1def4d2a030780c96faa5a8 /drivers/infiniband/hw/bnxt_re/qplib_res.h
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-stable-0c23af52ccd1605926480b5dfd1dd857ef604611.tar.gz
linux-stable-0c23af52ccd1605926480b5dfd1dd857ef604611.tar.bz2
linux-stable-0c23af52ccd1605926480b5dfd1dd857ef604611.zip
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: 9d6b648c3112 ("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>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/qplib_res.h')
-rw-r--r--drivers/infiniband/hw/bnxt_re/qplib_res.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/qplib_res.h b/drivers/infiniband/hw/bnxt_re/qplib_res.h
index c291f495ae91..91031502e8f5 100644
--- a/drivers/infiniband/hw/bnxt_re/qplib_res.h
+++ b/drivers/infiniband/hw/bnxt_re/qplib_res.h
@@ -54,6 +54,7 @@ struct bnxt_qplib_chip_ctx {
u16 chip_num;
u8 chip_rev;
u8 chip_metal;
+ u16 hw_stats_size;
struct bnxt_qplib_drv_modes modes;
};