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)
commit3a6532c9af1a7836da2d597f1aaca73cb16c3b97
tree742c5de2458a3d10c0b49fb4afc9ca66161d0372
parentef87df2c7a8f04d31cbf06f0b14b8dd5feafe473
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