OSDN Git Service

RDMA/core: Move core content from ib_uverbs to ib_core
authorMichal Kalderon <michal.kalderon@marvell.com>
Wed, 30 Oct 2019 09:44:10 +0000 (11:44 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 5 Nov 2019 13:59:26 +0000 (09:59 -0400)
commitb86deba977a91aaa5a4b725d7b42970e6de28d2c
treede39bd08e548f616b30f433ffeb6bcd820961df2
parent11f552e21755cb6f804572243a1502b6bbd008dd
RDMA/core: Move core content from ib_uverbs to ib_core

Move functionality that is called by the driver, which is
related to umap, to a new file that will be linked in ib_core.
This is a first step in later enabling ib_uverbs to be optional.
vm_ops is now initialized in ib_uverbs_mmap instead of
priv_init to avoid having to move all the rdma_umap functions
as well.

Link: https://lore.kernel.org/r/20191030094417.16866-2-michal.kalderon@marvell.com
Suggested-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/Makefile
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/ib_core_uverbs.c [new file with mode: 0644]
drivers/infiniband/core/uverbs_main.c