reset_psn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, meet reset_psn(9) from the Kernel API Manual β€” it literally resets the QP state to send starting from PSN. That's the whole vibe: QP state gets reset, and sending starts from the PSN you hand it. ✨

πŸŽ€ SYNOPSIS πŸŽ€

void reset_psn (struct rvt_qp *qp , u32 psn );

πŸ’… ARGUMENTS πŸ’…

  • qp β€” the QP. That's the one in question, bestie. 🫢
  • psn β€” the packet sequence number to restart at. So this is the PSN where things pick back up. πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: this gets called from hfi1_rc_rcv to process an incoming RC ACK for the given QP. Yep β€” incoming RC ACK, given QP, all through hfi1_rc_rcv. πŸ’Œ

Heads up: it's called at interrupt level with the QP s_lock held. That's the exact situation, no cap. ⚠️

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/infiniband/hw/hfi1/rc.c β€” and the whole crew is:


byeee 🫢 source/version: ./drivers/infiniband/hw/hfi1 Β· date: October 2026 Β· page: reset_psn(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from