]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/core: Make a new module for the uverbs components needed by drivers
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 26 May 2026 01:22:40 +0000 (22:22 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 26 May 2026 13:09:37 +0000 (10:09 -0300)
commit2274d8cb4912ab32bcff80d6c7cbae453614ae08
tree05c5f61146a7e8116d566546c1263dd9836a6a0d
parent2c296df0add86a75356f8bb099ecfcfc42419600
RDMA/core: Make a new module for the uverbs components needed by drivers

To maintain the split where ib_uverbs.ko should not be depended on by
drivers, add a new module ib_uverbs_support.ko which contains the driver
called functions that are too large or too rare to be placed in
ib_uverbs_core.ko

Start by moving most of rdma_core.c into this module, making some
adjustments to split it from the actual uverbs FD code.

This was not done originally because we lacked EXPORT_SYMBOL_NS and I had
a fear that drivers would abuse this interface surface.

Link: https://patch.msgid.link/r/4-v3-43aba1969751+1988-ib_uverbs_support_ko_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/Makefile
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_main.c