summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@mellanox.com>2020-06-21 12:41:47 +0200
committerJason Gunthorpe <jgg@nvidia.com>2020-07-03 14:16:25 +0200
commitd473f4dc2f95c8c856b1659ced3502802b7d2fbe (patch)
tree7eaf69c0231b8059552fe3033d8025b78616a4ec /include/rdma
parentRDMA/core: Fix bogus WARN_ON during ib_unregister_device_queued() (diff)
downloadlinux-d473f4dc2f95c8c856b1659ced3502802b7d2fbe.tar.xz
linux-d473f4dc2f95c8c856b1659ced3502802b7d2fbe.zip
RDMA/mlx5: Introduce ODP prefetch counter
For debugging purpose it will be easier to understand if prefetch works okay if it has its own counter. Introduce ODP prefetch counter and count per MR the total number of prefetched pages. In addition remove comment which is not relevant anymore and anyway not in the correct place. Link: https://lore.kernel.org/r/20200621104147.53795-1-leon@kernel.org Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 1e902a8f1713..f6b51a709818 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2271,6 +2271,7 @@ struct rdma_netdev_alloc_params {
struct ib_odp_counters {
atomic64_t faults;
atomic64_t invalidations;
+ atomic64_t prefetch;
};
struct ib_counters {