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

Now that we have metadata describing the command format the core code can
directly compute the udata pointers and all the really ugly
ib_uverbs_init_udata() calls can be removed from the handlers.

This means all the write() handlers are no longer sensitive to the layout
of the command buffer.

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