aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorErez Alfasi <ereza@mellanox.com>2019-10-16 09:23:05 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-10-22 15:22:47 -0300
commita3de94e3d61ec6e6c57ee066ec4d28ebc260dafa (patch)
tree5714ef04a0e6ed3ead8770a80bfa529eb11265cd /include/rdma/ib_verbs.h
parentinfiniband: add a Documentation driver-api chapter for Infiniband (diff)
downloadlinux-dev-a3de94e3d61ec6e6c57ee066ec4d28ebc260dafa.tar.xz
linux-dev-a3de94e3d61ec6e6c57ee066ec4d28ebc260dafa.zip
IB/mlx5: Introduce ODP diagnostic counters
Introduce ODP diagnostic counters and count the following per MR within IB/mlx5 driver: 1) Page faults: Total number of faulted pages. 2) Page invalidations: Total number of pages invalidated by the OS during all invalidation events. The translations can be no longer valid due to either non-present pages or mapping changes. Link: https://lore.kernel.org/r/20191016062308.11886-2-leon@kernel.org Signed-off-by: Erez Alfasi <ereza@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r--include/rdma/ib_verbs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index a465fcae992b..1ef31b27a41c 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2220,6 +2220,11 @@ struct rdma_netdev_alloc_params {
struct net_device *netdev, void *param);
};
+struct ib_odp_counters {
+ atomic64_t faults;
+ atomic64_t invalidations;
+};
+
struct ib_counters {
struct ib_device *device;
struct ib_uobject *uobject;