summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorErez Alfasi <ereza@mellanox.com>2019-10-16 08:23:05 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-10-22 20:22:47 +0200
commita3de94e3d61ec6e6c57ee066ec4d28ebc260dafa (patch)
tree5714ef04a0e6ed3ead8770a80bfa529eb11265cd /include/rdma
parentinfiniband: add a Documentation driver-api chapter for Infiniband (diff)
downloadlinux-a3de94e3d61ec6e6c57ee066ec4d28ebc260dafa.tar.xz
linux-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')
-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;