RDMA/erdma: Add hardware statistics support
authorCheng Xu <chengyou@linux.alibaba.com>
Wed, 27 Dec 2023 08:48:00 +0000 (16:48 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sat, 30 Dec 2023 15:23:17 +0000 (17:23 +0200)
commit63a43a675cb90e8a56e9119fff68292561204b27
treeedd6cdc29f4d72c9e14427e9c70b98b000ed09a1
parent68cf9d82f75c07d4117bca8129a770efa9d89f62
RDMA/erdma: Add hardware statistics support

First, we add a new command to query hardware statistics, and then
implement two functions: ib_device_ops.alloc_hw_port_stats and
ib_device_ops.get_hw_stats to allow rdma tool can get the statistics
of erdma device.

Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20231227084800.99091-3-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_hw.h
drivers/infiniband/hw/erdma/erdma_main.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h