Skip to content

[RFC] define common trait for cq and cq_ex #14

@FujiZ

Description

@FujiZ

A CQ object is required when creating QP. However, since we have 2 variants of CQ (ibv_cq, ibv_cq_ex), it would be more appropriate to have a trait of CQ to interact with other components rather than specifying a concrete type.

Things to discuss:

  1. The name of the trait: CompletionQueue has been taken by the ibv_cq wrappper. Maybe we can rename the original CompletionQueue and name the trait CompletionQueue, or maybe we can pick a new name for the trait instead?
  2. Methods that should be supported by this trait. Maybe a method returning NonNull<ibv_cq> is necessary.

The same discussion applys for QP as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions