OSDN Git Service

RDMA/mlx5: Introduce and reuse helper to identify ODP MR
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 8 Jan 2019 14:07:25 +0000 (16:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 8 Jan 2019 23:41:38 +0000 (16:41 -0700)
commit8b4d5bc5cf3f813dc4df5d69c2fcde16c40d8abd
tree4dfe5254ab03b2bb7582a3d6d9b6a24e938a3eef
parente502b8b011294c293064ef1baeb04235ccc05439
RDMA/mlx5: Introduce and reuse helper to identify ODP MR

Consolidate various checks if MR is ODP backed to one simple helper and
update call sites to use it.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c