bnxt_re/lib: Add uverbs object handle path for CQ/SRQ toggle page#1761
Open
selvintxavier wants to merge 2 commits into
Open
bnxt_re/lib: Add uverbs object handle path for CQ/SRQ toggle page#1761selvintxavier wants to merge 2 commits into
selvintxavier wants to merge 2 commits into
Conversation
selvintxavier
force-pushed
the
new_cq_srq_toggle_obj
branch
from
June 22, 2026 05:35
e564447 to
67129b6
Compare
To commit: ?? ("RDMA/bnxt_re: Add uverbs object handle path for CQ/SRQ
toggle page").
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
The kernel driver supports two paths for the GET_TOGGLE_MEM ioctl: - Legacy path (older kernels / older rdma-core): the caller sends BNXT_RE_TOGGLE_MEM_TYPE (enum: CQ or SRQ) and BNXT_RE_TOGGLE_MEM_RES_ID (the hardware queue ID). The kernel performs an XArray lookup per ucontext to find the toggle page. - New path (new kernel + new rdma-core): the caller sends a uverbs object handle (BNXT_RE_TOGGLE_MEM_CQ_HANDLE or BNXT_RE_TOGGLE_MEM_SRQ_HANDLE). The kernel resolves the uobject directly, with built-in ownership verification and pinning. During alloc_ucontext, lib now sets the new request bit BNXT_RE_COMP_MASK_REQ_UCNTX_TOGGLE_MEM_UOBJ_SUPPORT to advertise uobj-handle capability. If the kernel responds with BNXT_RE_UCNTX_CMASK_TOGGLE_MEM_UOBJ_SUPPORT. Based on the negotiated capability, new path will be selected. Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The kernel driver supports two paths for the GET_TOGGLE_MEM ioctl: