| HNSDV_QUERY_DEVICE(3) | HNS Direct Verbs Manual | HNSDV_QUERY_DEVICE(3) |
hnsdv_query_device - Query hns device specific attributes
#include <infiniband/hnsdv.h>
int hnsdv_query_device(struct ibv_context *context,
struct hnsdv_context *attrs_out);
hnsdv_query_device() Queries hns device specific attributes.
Please see ibv_query_device(3) man page for context.
struct hnsdv_context {
uint64_t comp_mask;
uint64_t flags;
uint8_t congest_type;
uint8_t reserved[7];
};
HNSDV_CONTEXT_MASK_CONGEST_TYPE: Congestion control algorithm is supported.
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
hnsdv_query_device() returns 0 on success, or the value of errno on failure (which indicates the failure reason).
ibv_query_device(3)
Junxian Huang huangjunxian6@hisilicon.com
| 2024-02-06 | hns |