logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hnsdv_query_device - Query 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

Authors

Junxian Huang huangjunxian6@hisilicon.com hns 2024-02-06 HNSDV_QUERY_DEVICE(3)

Description

hnsdv_query_device() Queries hns device specific attributes.

Name

hnsdv_query_device - Query hns device specific attributes

Notes

flags is an out field and currently has no values.

Return Value

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

See Also

ibv_query_device(3)

Synopsis

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

See Also