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
Member
|
please update this PR |
Contributor
Author
sure will post it today |
selvintxavier
force-pushed
the
new_cq_srq_toggle_obj
branch
from
August 6, 2026 06:04
67129b6 to
23fcd01
Compare
Contributor
Author
|
compilation failure due to the kernel header change
}; @rleon how should I handle this? Can you please help? |
To commit: a1c0d4719b08 ("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. Use BNXT_RE_UCNTX_CMASK_TOGGLE_MEM_UOBJ_SUPPORT to communicate whether new uobject mechanism is supported. 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: