summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-11-25 20:58:35 +0200
committerDoug Ledford <dledford@redhat.com>2018-12-03 11:57:41 -0500
commitc2a939fda468bb5c4144a64fd2b9cbdad323bf68 (patch)
tree5e56b78ed60db7b55c3432532235145d88a4345a /include/rdma
parentbbb28ad9035f8efa9c5581b3809ff8055cc1f4b2 (diff)
downloadlinux-c2a939fda468bb5c4144a64fd2b9cbdad323bf68.tar.gz
linux-c2a939fda468bb5c4144a64fd2b9cbdad323bf68.tar.bz2
linux-c2a939fda468bb5c4144a64fd2b9cbdad323bf68.zip
RDMA/uverbs: Use uverbs_attr_bundle to pass ucore for write/write_ex
This creates a consistent way to access the two core buffers across write and write_ex handlers. Remove the open coded ucore conversion in the write/ex compatibility handlers. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/uverbs_ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/uverbs_ioctl.h b/include/rdma/uverbs_ioctl.h
index 8fc87079c2b8..9486a525afc1 100644
--- a/include/rdma/uverbs_ioctl.h
+++ b/include/rdma/uverbs_ioctl.h
@@ -647,6 +647,7 @@ struct uverbs_attr {
struct uverbs_attr_bundle {
struct ib_udata driver_udata;
+ struct ib_udata ucore;
struct ib_uverbs_file *ufile;
DECLARE_BITMAP(attr_present, UVERBS_API_ATTR_BKEY_LEN);
struct uverbs_attr attrs[];