STRUCT RVT_UD_WR(9)
π struct rvt_ud_wr(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this one's a little struct with big main character energy, and honestly? it's giving "small but mighty." let's get into it π«Ά
πΈ NAME πΈ
struct rvt_ud_wr β the IB UD work request plus its AH cache, periodt π
β¨ SYNOPSIS β¨
struct rvt_ud_wr {
struct ib_ud_wr wr;
struct rdma_ah_attr *attr;
};
like, that's the whole vibe. two fields. clean. iconic. no cap π
π¦ Members π¦
wrβ a valid IB work request. literally the actual work, the moment, the main event πattrβ a pointer to an allocated AH attribute. it's a pointer, she points, that's her job π
π Description π
so basically this is the special-case version of the UD WR, and the whole reason it exists is so we can keep track of the AH attributes β¨ it's a dedicated lil home for them, and we're obsessed.
π NOTE π
bestie. listen. this data structure is stricly orderedwrthenattr. i.e. theattrMUST come afterwr. π¨
like, do not reorder them, do not pass go, do not collect $200 π the ib_ud_wr is sized and copied in rvt_post_one_wr, and that copy assumes that wr is first. so the layout is not a suggestion, it's the law π―
π§ SEE ALSO π§
Kernel file ./include/rdma/rdmavt_qp.h β and then the whole squad, fr fr:
struct rvt_krwq(9)rvt_get_swqe_ah_attr(9)rvt_get_swqe_remote_qpn(9)rvt_get_swqe_remote_qkey(9)rvt_get_swqe_pkey_index(9)rvt_get_rq_count(9)struct rvt_operation_params(9)rvt_is_user_qp(9)rvt_get_qp(9)rvt_put_qp(9)rvt_put_swqe(9)rvt_qp_wqe_reserve(9)rvt_qp_wqe_unreserve(9)rvt_div_round_up_mtu(9)rvt_div_mtu(9)rvt_timeout_to_jiffies(9)rvt_lookup_qpn(9)rvt_mod_retry_timer_ext(9)rvt_put_qp_swqe(9)rvt_qp_swqe_incr(9)rvt_recv_cq(9)rvt_send_cq(9)rvt_qp_complete_swqe(9)struct rvt_qp_iter(9)ib_cq_tail(9)ib_cq_head(9)rvt_free_rq(9)rvt_to_iport(9)rvt_rc_credit_avail(9)
and that's the whole page, bestie β no crumbs left behind π
signing off from ./include/rdma, dated October 2026, on struct rvt_ud_wr(9) π slay, stay ordered, and keep wr first πβ¨
π¦ 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