diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2019-12-12 11:02:36 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-12-12 22:55:36 +0100 |
commit | 7a763d18ff2a75cfd1014800327f4120840bef09 (patch) | |
tree | 527c9fe911c5f2e0f1be28e97ab3c9b1fb108597 /include/rdma | |
parent | IB/mlx5: Fix steering rule of drop and count (diff) | |
download | linux-7a763d18ff2a75cfd1014800327f4120840bef09.tar.xz linux-7a763d18ff2a75cfd1014800327f4120840bef09.zip |
IB/core: Introduce rdma_user_mmap_entry_insert_range() API
Introduce rdma_user_mmap_entry_insert_range() API to be used once the
required key for the given entry should be in a given range.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20191212100237.330654-2-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index cacb48faf670..5608e14e3aad 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2832,6 +2832,11 @@ int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma, int rdma_user_mmap_entry_insert(struct ib_ucontext *ucontext, struct rdma_user_mmap_entry *entry, size_t length); +int rdma_user_mmap_entry_insert_range(struct ib_ucontext *ucontext, + struct rdma_user_mmap_entry *entry, + size_t length, u32 min_pgoff, + u32 max_pgoff); + struct rdma_user_mmap_entry * rdma_user_mmap_entry_get_pgoff(struct ib_ucontext *ucontext, unsigned long pgoff); |