rdma_calc_flow_label(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rdma_calc_flow_label(9) β€” the Kernel API Manual glow-up ✨

✨ NAME ✨

okay bestie, the name entry is: rdma_calc_flow_label β€” generate a RDMA symmetric flow label value based on local and remote qpn values. periodt. πŸ’–

🫢 SYNOPSIS 🫢

the signature, served fresh:

u32 rdma_calc_flow_label (u32 lqpn , u32 rqpn );

πŸ’… ARGUMENTS πŸ’…

the OG page is literally giving us -- undescribed -- for both, so we keep it 100 and don't invent lore:

  • lqpn β€” -- undescribed -- πŸ™ˆ
  • rqpn β€” -- undescribed -- πŸ™ˆ

🌈 DESCRIPTION 🌈

okay so this function folds the multiplication results of two qpn fields β€” 24 bit each β€” and converts it to a 20 bit result. math girlie behavior, honestly. ✨

it creates a symmetric flow_label value based on the local and remote qpn values. the slay here is that both the requester and responder can calculate the same flow_label for a given connection. 🫢

this helper should be used by the driver in case the upper layer provides a zero flow_label value. why? to improve entropy of RDMA traffic in the network. entropy queen 🌸

πŸ‘‘ SEE ALSO πŸ‘‘

the original page points at Kernel file ./include/rdma/ib_verbs.h, and then it name-drops this entire iconic guest list β€” every single one, no skips:


that's the page, bestie 🫢 β€” source/version is ./include/rdma, dated October 2026, and the star is rdma_calc_flow_label(9). periodt. πŸ’…

πŸ“¦ where this page comes from