]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Use uverbs_attr_bundle to pass udata for write_ex
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:51:18 +0000 (20:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 26 Nov 2018 23:48:07 +0000 (16:48 -0700)
commitec0aca723c9d42c78bf512f6f611da4340db544d
treee6926935a947d198c37ca33b6a877b6d8d97fed9
parent3040e9a8436139268d5a4d515d0fe991d913af9d
RDMA/uverbs: Use uverbs_attr_bundle to pass udata for write_ex

The core code needs to compute the udata so we may as well pass it in the
uverbs_attr_bundle instead of on the stack. This converts the simple case
of write_ex() which already has a core calculation.

Also change the write() path to use the attrs for ib_uverbs_init_udata()
instead of on the stack. This lets the write to write_ex compatibility
path continue to follow the lead of the _ex path.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/uverbs_uapi.c
include/rdma/uverbs_ioctl.h