hnsdv_query_device(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | RETURN VALUE | SEE ALSO | NOTES | AUTHORS | COLOPHON

HNSDV_QUERY_DEVICE(3)    HNS Direct Verbs Manual    HNSDV_QUERY_DEVICE(3)

NAME         top

       hnsdv_query_device - Query hns device specific attributes

SYNOPSIS         top

              #include <infiniband/hnsdv.h>
              int hnsdv_query_device(struct ibv_context *context,
                                     struct hnsdv_context *attrs_out);

DESCRIPTION         top

       hnsdv_query_device() Queries hns device specific attributes.

ARGUMENTS         top

       Please see ibv_query_device(3) man page for context.

   attrs_out
              struct hnsdv_context {
                      uint64_t comp_mask;
                      uint64_t flags;
                      uint8_t congest_type;
                      uint8_t reserved[7];
              };

       comp_mask
              Bitmask specifying what fields in the structure are valid:

              HNSDV_CONTEXT_MASK_CONGEST_TYPE: Congestion control
              algorithm is supported.

       congest_type
              Bitmask of supported congestion control algorithms.

              HNSDV_QP_CREATE_ENABLE_DCQCN: Data Center Quantized
              Congestion Notification HNSDV_QP_CREATE_ENABLE_LDCP: Low
              Delay Control Protocol HNSDV_QP_CREATE_ENABLE_HC3: Huawei
              Converged Congestion Control HNSDV_QP_CREATE_ENABLE_DIP:
              Destination IP based Quantized Congestion Notification

RETURN VALUE         top

       hnsdv_query_device() returns 0 on success, or the value of errno
       on failure (which indicates the failure reason).

SEE ALSO         top

       ibv_query_device(3)

NOTES         top

flags is an out field and currently has no values.

AUTHORS         top

       Junxian Huang ⟨[email protected]

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries
       and Daemons) project.  Information about the project can be found
       at ⟨https://github.com/linux-rdma/rdma-core⟩.  If you have a bug
       report for this manual page, send it to
       [email protected].  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2025-08-11.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2025-08-04.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there is
       a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       [email protected]

hns                             2024-02-06          HNSDV_QUERY_DEVICE(3)