RDMA/uverbs: Use uverbs_attr_bundle to pass ucore for write/write_ex
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:58:35 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 16:57:41 +0000 (11:57 -0500)
commitc2a939fda468bb5c4144a64fd2b9cbdad323bf68
tree5e56b78ed60db7b55c3432532235145d88a4345a
parentbbb28ad9035f8efa9c5581b3809ff8055cc1f4b2
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>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
include/rdma/uverbs_ioctl.h