bng_re_map_rc(9)
π bng_re_map_rc(9) β the Kernel API Manual cut π
okay so bestie, welcome to the bng_re_map_rc page from the Kernel API Manual β yes that's the manual name, we're folding it in at the top like a little name tag π this whole page is about one tiny helper that maps a return type based on an opcode, and honestly it's giving "small function, big feelings" β¨
β¨ NAME β¨
bng_re_map_rc β map return type based on opcode</p> π that's it, that's the whole job, no cap.
πΈ SYNOPSIS πΈ
int bng_re_map_rc (u8 opcode );
so we're returning an int, and we're taking exactly one u8 called opcode. cute, clean, iconic π
π¦ ARGUMENTS π¦
opcodeβ roce slow path opcode π«Ά that's the thing you're handing in, and it's literally the whole vibe check for this function
π₯ DESCRIPTION π₯
okay so here's the lore, and it comes in two cases β the way that the driver can be in two completely different moods π
- 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.). β¨
- case #2 β If the driver detects a potential firmware stall, it is not a 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.). π
π¨ and here's the part you cannot miss, bestie: Scope of this helper function is only for case #1. only case #1. not case #2. do not come for case #2 with this function, fr fr π
π RETURN π
0β communicates success to the caller π- Non zero error code β communicates failure to the caller π
π SEE ALSO π
- Kernel file
./drivers/infiniband/hw/bng_re/bng_fw.cβ__wait_for_resp(9),bng_re_rcfw_send_message(9)π
and that's the page!! π¦ the source lives over at ./drivers/infiniband/hw/bng_re, it's dated October 2026, and it's the bng_re_map_rc(9) page β go read the source, it's literally right there, iykyk πβ¨π
π¦ 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