]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Consolidate ib_create_srq flows
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 08:24:39 +0000 (11:24 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Sun, 17 May 2020 23:35:25 +0000 (20:35 -0300)
commitb0810b037de0b62a3c6e3abfc123fe2734335f53
tree18a8959d568256175f888491b04e1d27da2ad02c
parentdbd67252869ba58d086edfa14113e10f8059b97e
RDMA/core: Consolidate ib_create_srq flows

The uverbs layer largely duplicate the code in ib_create_srq(), with the
slight difference that it passes in a udata. Move all the code together
into ib_create_srq_user() and provide an inline for kernel users, similar
to other create calls.

Link: https://lore.kernel.org/r/20200506082444.14502-6-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h