STRUCT IB_USER_MAD_HDR_OLD(9)
π struct ib_user_mad_hdr_old(9)
okay so bestie, welcome to the Kernel API Manual π β yes we're in kernel land today, and yes it's iconic. This page is about struct ib_user_mad_hdr_old, which is literally just the old version of the MAD packet header, except it's missing pkey_index. that's the whole vibe. she's the prequel. the OG. the "before the glow-up" header π¦
β¨ NAME β¨
struct ib_user_mad_hdr_old β the old version of the MAD packet header, aka the one without pkey_index π
πΈ SYNOPSIS πΈ
struct ib_user_mad_hdr_old {
__u32 id;
__u32 status;
__u32 timeout_ms;
__u32 retries;
__u32 length;
__be32 qpn;
__be32 qkey;
__be16 lid;
__u8 sl;
__u8 path_bits;
__u8 grh_present;
__u8 gid_index;
__u8 hop_limit;
__u8 traffic_class;
__u8 gid[16];
__be32 flow_label;
};
like, look at her. so many little fields. so much main character energy π
π Members π
here's the full rundown, no cap, every single one:
idβ the ID of the agent MAD was received with / is gonna be sent with π₯statusβ0on a successful receive, orETIMEDOUTif no response came back (in that case the transaction ID indata[]gets set to the TID of the original request) π β and heads up, this one's ignored on sendtimeout_msβ how many milliseconds to wait for a response. it's unset on receiveretriesβ number of automatic retries to attempt πqpnβ the remote QP number, received from / to be sent toqkeyβ remote Q_Key to be sent with. unset on receivelidβ remote lid, received from / to be sent toslβ service level, received with / to be sent withpath_bitsβ local path bits, received with / to be sent withgrh_presentβ if set, the GRH was received / should be sent β¨gid_indexβ local GID index to send with. unset on receivehop_limitβ hop limit in the GRHtraffic_classβ traffic class in the GRH π¦gidβ remote GID in the GRHflow_labelβ flow label in the GRH π
ngl, length is sitting right there in the struct but the page doesn't give her a description. she's mysterious. we respect that π«Ά
π SEE ALSO π
- Kernel file
./include/uapi/rdma/ib_user_mad.h struct ib_user_mad_hdr(9)struct ib_user_mad(9)struct ib_user_mad_reg_req(9)struct ib_user_mad_reg_req2(9)
and that's the whole page, bestie π she lives at ./include/uapi/rdma, dated October 2026, and she's filed under struct ib_user_mad_hdr_old(9) β go read the newer ones, they ate πβ¨
π¦ 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