Completion Queues (CQs) and CQEs

Purpose of CQ

After a message transfer completes, either with or without error, the WQE is retired from the respective queue (SQ or RQ) and a completion notice is recorded in the CQ associated with the respective queue (SQ or RQ). The entry created in the CQ is referred to as a Completion Queue Entry, or CQE (pronounced “cookie”). Each CQE contains the 64-bit WR ID that was assigned to the original message transfer WR posted to the SQ or the RQ by software. This permits software to associate a CQE with a previously issued message transfer WR.

CQ-Related Verbs

General

The verbs that are associated with CQs are:

  • Create CQ.

  • Query CQ.

  • Resize CQ.

  • Destroy CQ.

  • Set Completion Event Handler.

  • Poll For Completion.

  • Request Completion ...

Get InfiniBand Network Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.