[PATCH rdma-next v3 01/13] RDMA/core: widen the uverbs object key
From: Eric Davis via B4 Relay
Date: Mon Nov 09 2026 - 23:07:22 EST
From: Eric Davis <eric.davis@xxxxxxxxxxxx>
Three more core objects would leave drivers nine object keys, and mlx5
alone uses ten. Add a bit to the object key.
Signed-off-by: Eric Davis <eric.davis@xxxxxxxxxxxx>
---
include/rdma/uverbs_ioctl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/rdma/uverbs_ioctl.h b/include/rdma/uverbs_ioctl.h
index 1aaaadb8daf6..a920e57ce990 100644
--- a/include/rdma/uverbs_ioctl.h
+++ b/include/rdma/uverbs_ioctl.h
@@ -108,7 +108,7 @@ struct uverbs_attr_spec {
* object_id, attr_id, method_id
*
* Which is a 48 bit value, with most of the bits guaranteed to be zero. Based
- * on the current kernel support this is compressed into 16 bit key for the
+ * on the current kernel support this is compressed into 17 bit key for the
* radix tree. Since this compression is entirely internal to the kernel the
* below limits can be revised if the kernel gains additional data.
*
@@ -144,7 +144,7 @@ enum uapi_radix_data {
UVERBS_API_METHOD_KEY_BITS + UVERBS_API_METHOD_KEY_SHIFT - 1,
UVERBS_API_METHOD_KEY_SHIFT),
- UVERBS_API_OBJ_KEY_BITS = 5,
+ UVERBS_API_OBJ_KEY_BITS = 6,
UVERBS_API_OBJ_KEY_SHIFT =
UVERBS_API_METHOD_KEY_BITS + UVERBS_API_METHOD_KEY_SHIFT,
UVERBS_API_OBJ_KEY_NUM_CORE = 20,
--
2.56.0