hnsdv_query_device(3)

hnsdv_query_device3

Query hns device specific attributes

Usage

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

Overview

hnsdv_query_device() Queries hns device specific attributes.

Arguments

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

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

Notes

•

flags is an out field and currently has no values.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Authors

Junxian Huang ⟨[email protected]⟩\c

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.