diff options
author | Moni Shoua <monis@mellanox.com> | 2019-08-19 07:17:08 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-08-21 13:08:43 -0400 |
commit | ce51346feede2ea41de0ad58af2b514223e11dad (patch) | |
tree | 3606fde571acad2f1caf1eb497b91e1a7c30000b /include/rdma | |
parent | 37824952dc8fcd96e5c5a1ce9abf3f0ba09b1e5e (diff) |
RDMA/core: Make invalidate_range a device operation
The callback function 'invalidate_range' is implemented in a driver so the
place for it is in the ib_device_ops structure and not in ib_ucontext.
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Link: https://lore.kernel.org/r/20190819111710.18440-11-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 4f225175cb91..c2b39dda44cc 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -1417,8 +1417,6 @@ struct ib_ucontext { | |||
1417 | 1417 | ||
1418 | bool cleanup_retryable; | 1418 | bool cleanup_retryable; |
1419 | 1419 | ||
1420 | void (*invalidate_range)(struct ib_umem_odp *umem_odp, | ||
1421 | unsigned long start, unsigned long end); | ||
1422 | struct mutex per_mm_list_lock; | 1420 | struct mutex per_mm_list_lock; |
1423 | struct list_head per_mm_list; | 1421 | struct list_head per_mm_list; |
1424 | 1422 | ||
@@ -2378,6 +2376,8 @@ struct ib_device_ops { | |||
2378 | u64 iova); | 2376 | u64 iova); |
2379 | int (*unmap_fmr)(struct list_head *fmr_list); | 2377 | int (*unmap_fmr)(struct list_head *fmr_list); |
2380 | int (*dealloc_fmr)(struct ib_fmr *fmr); | 2378 | int (*dealloc_fmr)(struct ib_fmr *fmr); |
2379 | void (*invalidate_range)(struct ib_umem_odp *umem_odp, | ||
2380 | unsigned long start, unsigned long end); | ||
2381 | int (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); | 2381 | int (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); |
2382 | int (*detach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); | 2382 | int (*detach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); |
2383 | struct ib_xrcd *(*alloc_xrcd)(struct ib_device *device, | 2383 | struct ib_xrcd *(*alloc_xrcd)(struct ib_device *device, |