.\" Automatically generated by Pandoc 3.1.11.1
.\"
.TH "HNSDV_QUERY_DEVICE" "3" "2024\-02\-06" "hns" "HNS Direct Verbs Manual"
.SH NAME
hnsdv_query_device \- Query hns device specific attributes
.SH SYNOPSIS
.IP
.EX
#include <infiniband/hnsdv.h>
int hnsdv_query_device(struct ibv_context *context,
                       struct hnsdv_context *attrs_out);
.EE
.SH DESCRIPTION
\f[B]hnsdv_query_device()\f[R] Queries hns device specific attributes.
.SH ARGUMENTS
Please see \f[I]ibv_query_device(3)\f[R] man page for \f[I]context\f[R].
.SS attrs_out
.IP
.EX
struct hnsdv_context {
        uint64_t comp_mask;
        uint64_t flags;
        uint8_t congest_type;
        uint8_t reserved[7];
};
.EE
.TP
\f[I]comp_mask\f[R]
Bitmask specifying what fields in the structure are valid:
.RS
.PP
HNSDV_CONTEXT_MASK_CONGEST_TYPE: Congestion control algorithm is
supported.
.RE
.TP
\f[I]congest_type\f[R]
Bitmask of supported congestion control algorithms.
.RS
.PP
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
.RE
.SH RETURN VALUE
\f[B]hnsdv_query_device()\f[R] returns 0 on success, or the value of
errno on failure (which indicates the failure reason).
.SH SEE ALSO
\f[B]ibv_query_device\f[R](3)
.SH NOTES
.IP \[bu] 2
\f[I]flags\f[R] is an out field and currently has no values.
.SH AUTHORS
Junxian Huang \c
.MT huangjunxian6@hisilicon.com
.ME \c
