bnxt_qplib_map_rc(9)
π bnxt_qplib_map_rc(9) β the vibe check for your opcodes
okay bestie, welcome to the Kernel API Manual page for bnxt_qplib_map_rc(9). this one's a tiny little helper with a big job and honestly it's giving "quiet luxury" β small function, serious consequences. let's get into it π
β¨ NAME β¨
bnxt_qplib_map_rc β literally maps a return type based on the opcode, that's the whole gig π
π¦ SYNOPSIS π¦
int bnxt_qplib_map_rc (u8 opcode );
πΈ ARGUMENTS πΈ
opcodeβ the roce slow path opcode π§ like, the little number that tells you what operation we're talking about
π₯ DESCRIPTION π₯
so there are two whole cases here and you NEED to know the difference, no cap π
case #1 β Firmware initiated error recovery is a safe state machine, and the driver can consider all the underlying rdma resources are free. in this state, it is safe to return success for opcodes related to destroying rdma resources (like destroy qp, destroy cq etc.). slay, everything's chill, resources are freed, we're good π
case #2 β If driver detect potential firmware stall, it is not safe state machine and the driver can not consider all the underlying rdma resources are freed. in this state, it is not safe to return success for opcodes related to destroying rdma resources (like destroy qp, destroy cq etc.). π« like no, absolutely not, do not pass go, do not collect $200
β οΈ real talk: the Scope of this helper function is only for case #1. it does NOT handle case #2. do not come for this function about case #2, it said what it said π
β RETURN β
0β to communicate success to caller π₯³- Non zero error code β to communicate failure to caller π
π SEE ALSO π
Kernel file ./drivers/infiniband/hw/bnxt_re/qplib_rcfw.c β that's the main character energy source file fr fr π
and these iconic besties too:
bnxt_re_is_fw_stalled(9)__wait_for_resp(9)__block_for_resp(9)__poll_for_resp(9)__bnxt_qplib_rcfw_send_message(9)bnxt_qplib_rcfw_send_message(9)
π«Ά that's the whole page, bestie. go forth and map those return codes responsibly.
source: ./drivers/infiniband/hw/bnxt_re Β· version/date: October 2026 β mwah, hope this helped, ily, bye πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms