bnxt_re/lib: Add uverbs object handle path for CQ/SRQ toggle page - #1761
bnxt_re/lib: Add uverbs object handle path for CQ/SRQ toggle page#1761selvintxavier wants to merge 2 commits into
Conversation
e564447 to
67129b6
Compare
|
please update this PR |
sure will post it today |
67129b6 to
23fcd01
Compare
|
compilation failure due to the kernel header change
}; @rleon how should I handle this? Can you please help? |
|
What is the question? When you update the header headers you have to fix the code too, I think the kernel side patch intended to change the flags member name to comp_mask ? |
My question was mainly whether i should wait for the corresponding changes in mana to be merged or shall i just make the compilation change in mana as a second patch in this series. Yes. there is a change of the name from flags to comp_mask which is causing the compilation failure. I will just make that change as part of the series and push this again. Thanks |
23fcd01 to
d2a24bc
Compare
d2a24bc to
9c2b001
Compare
|
Hi Leon/Jason, can this be merged? I have rebased to the latest. |
9c2b001 to
3f687ba
Compare
To commit: 6aad80a1d4e7 ("RDMA/mana_ib: UC QP support for UAPI").
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>
The kernel driver supports two paths for the GET_TOGGLE_MEM ioctl: