hnsdv_query_device - Man Page
Query hns device specific attributes
Synopsis
#include <infiniband/hnsdv.h> int hnsdv_query_device(struct ibv_context *context, struct hnsdv_context *attrs_out);
Description
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).
See Also
Notes
- flags is an out field and currently has no values.
Authors
Junxian Huang huangjunxian6@hisilicon.com\c