STRUCT SRPT_PORT_ATTRIB(9)
β¨ struct srpt_port_attrib β the Kernel API Manual glow-up β¨
okay so this is a page from the Kernel API Manual (struct srpt_port_attrib(9) section, iykyk) and bestie, it's literally just one little struct holding the attributes for an SRPT port. tiny struct, big main character energy π
πΈ NAME πΈ
struct srpt_port_attrib β attributes for SRPT port. that's it, that's the vibe π
π¦ SYNOPSIS π¦
here's the whole thing, no cap, copied exactly:
struct srpt_port_attrib {
u32 srp_max_rdma_size;
u32 srp_max_rsp_size;
u32 srp_sq_size;
bool use_srq;
};
four members, all iconic in their own way β¨
π MEMBERS π
let's go through them one by one, bestie, so you know exactly what each one does:
srp_max_rdma_sizeβ the maximum size of SRP RDMA transfers for new connections. so like, fresh connections only β it's giving "first impressions matter" π«Άsrp_max_rsp_sizeβ the maximum size of SRP response messages, measured in bytes. yes, bytes. she's precise π₯srp_sq_sizeβ shared receive queue (SRQ) size. that's the SRQ, not to be confused with anything else, okay? πuse_srqβ aboolthat decides whether or not to use SRQ. literally just a yes/no, and honestly? relatable πΈ
lowkey important:use_srqis abool, andsrp_sq_sizeis described as the shared receive queue (SRQ) size β that's what the manual says, so that's what you get. no extra lore from me, periodt π
π SEE ALSO π
if you're obsessed with this one (and why wouldn't you be π), the kernel file to check out is ./drivers/infiniband/ulp/srpt/ib_srpt.h, plus this whole friend group right here:
enum srpt_command_state(9)struct srpt_ioctx(9)struct srpt_recv_ioctx(9)struct srpt_send_ioctx(9)enum rdma_ch_state(9)struct srpt_rdma_ch(9)struct srpt_nexus(9)struct srpt_tpg(9)struct srpt_port_id(9)struct srpt_port(9)struct srpt_device(9)
go read them all, bestie, they're all slay in different ways π
and that's the page!! π§ source: ./drivers/infiniband/ulp/srpt Β· October 2026 Β· from the Kernel API Manual, section struct srpt_port_attrib(9) β mwah, take care of her π«Άπ
π¦ 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