summaryrefslogtreecommitdiff
path: root/include/rdma
diff options
context:
space:
mode:
authorChiara Meiohas <cmeiohas@nvidia.com>2025-03-06 13:51:28 +0200
committerLeon Romanovsky <leon@kernel.org>2025-03-09 13:13:02 -0400
commitfe9d7822baee65d8e77542391799b2777f5216f5 (patch)
tree0ef180702b6b121fe1c2a430a48fe202e0cf2cf8 /include/rdma
parentcf7174e8982f8e07a04db23e549a3f9c9a80d3ca (diff)
downloadlinux-fe9d7822baee65d8e77542391799b2777f5216f5.tar.gz
linux-fe9d7822baee65d8e77542391799b2777f5216f5.tar.bz2
linux-fe9d7822baee65d8e77542391799b2777f5216f5.zip
RDMA/uverbs: Add support for UCAPs in context creation
Add support for file descriptor array attribute for GET_CONTEXT commands. Check that the file descriptor (fd) array represents fds for valid UCAPs. Store the enabled UCAPs from the fd array as a bitmask in ib_ucontext. Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com> Link: https://patch.msgid.link/ebfb30bc947e2259b193c96a319c80e82599045b.1741261611.git.leon@kernel.org Reviewed-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index a5761038935d..9941f4185c79 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1530,6 +1530,7 @@ struct ib_ucontext {
struct ib_uverbs_file *ufile;
struct ib_rdmacg_object cg_obj;
+ u64 enabled_caps;
/*
* Implementation details of the RDMA core, don't use in drivers:
*/