Search code examples
clinuxrdma

RDMA - how does the ibv_post_send know the CQ?


I'm trying to learn RDMA.

My question is, when doing ibv_post_send, I should get a completion event on a completion queue. But how does the ibv_post_send know to which completion queue? From what I see here, I could have created many.


Solution

  • Turns out when initiating a QP, it can be assigned to a send CQ and recv CQ in its init attributes.