IB/mlx5: Introduce ODP diagnostic counters
authorErez Alfasi <ereza@mellanox.com>
Wed, 16 Oct 2019 06:23:05 +0000 (09:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 22 Oct 2019 18:22:47 +0000 (15:22 -0300)
commita3de94e3d61ec6e6c57ee066ec4d28ebc260dafa
tree5714ef04a0e6ed3ead8770a80bfa529eb11265cd
parent75e70add889039b9683b3d9989d4163c226b98a7
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>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c
include/rdma/ib_verbs.h