STRUCT SRP_LOGIN_REQ_RDMA(9)
π¦ struct srp_login_req_rdma(9) π¦
okay so bestie, this is a page from the Kernel API Manual and it's about struct srp_login_req_rdma β the RDMA/CM login parameters situation. yes it's as niche as it sounds and yes we're gonna get through it together π
β¨ NAME β¨
struct srp_login_req_rdma β RDMA/CM login parameters. that's literally it. that's the whole name section. short and iconic π
πΈ SYNOPSIS πΈ
here's the whole struct, copy it exactly, no freestyling:
struct srp_login_req_rdma {
u64 tag;
__be16 req_buf_fmt;
u8 req_flags;
u8 opcode;
__be32 req_it_iu_len;
u8 initiator_port_id[16];
u8 target_port_id[16];
__be16 imm_data_offset;
u8 reserved[6];
};
look at all those fields. tag, req_buf_fmt, req_flags, opcode, req_it_iu_len, initiator_port_id[16], target_port_id[16], imm_data_offset, and reserved[6]. every single one of them is there and none of them got left behind π«Ά
π Members π
so the original page has a Members heading right here, and ngl it doesn't list anything under it β the fields are all up in the struct in the synopsis above. so likeβ¦ go look at those. they're cute, they're listed, they're accounted for β¨
π Description π
okay here's the actual tea, and it's a numbers moment so pay attention π₯
RDMA/CM over InfiniBand can only carry 92 - 36 = 56 bytes of private data. that's the budget. that's all you get. π
and so, the srp_login_req_rdma structure contains the same information as srp_login_req but with the reserved data removed. that's the whole vibe β same info, reserved stuff yeeted, because the wire literally cannot hold any more. it's giving "pack light or don't pack at all" π
π SEE ALSO π
- Kernel file
./include/scsi/srp.hβ go read it, it's right there, it's the source of truth π
lowkey reminder bestie: that 92 - 36 = 56 math is not a suggestion, it's the ceiling. respect the byte budget or the bytes will disrespect you π
and that's the page!! brought to you by ./include/scsi, dated October 2026, and it's the struct srp_login_req_rdma(9) manual page, mwah π
β¨π
π¦ 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