HNSDV_CREATE_QP(3)
β¨ HNSDV_CREATE_QP(3) β¨
okay so bestie, this one's from the HNS Programmer's Manual and it's literally the glow-up moment for creating queue pairs π no cap.
πΈ NAME πΈ
hnsdv_create_qp β creates a HNS specific queue pair (QP) π«Ά
π SYNOPSIS π
#include <infiniband/hnsdv.h>
struct ibv_qp *hnsdv_create_qp(struct ibv_context *context,
struct ibv_qp_init_attr_ex *qp_attr,
struct hnsdv_qp_init_attr *hns_attr);
π¦ DESCRIPTION π¦
So like, hnsdv_create_qp() creates a HNS specific queue pair (QP) with specific driver properties. it's giving main character energy for your QP fr fr β¨
π ARGUMENTS π
For context and qp_attr, bestie, please go see the ibv_create_qp_ex(3) man page β they've got the whole lore over there π
π hns_attr
struct hnsdv_qp_init_attr {
uint64_t comp_mask;
uint32_t create_flags;
uint8_t congest_type;
uint8_t reserved[3];
};
β comp_mask
Bitmask specifying what fields in the structure are valid π
HNSDV_QP_INIT_ATTR_MASK_QP_CONGEST_TYPEβ says the values incongest_typeare valid. allows setting a congestion control algorithm for the QP π«
β create_flags
Enable the QP of a feature π§
β congest_type
Type of congestion control algorithm β pick your vibe:
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_create_qp() returns a pointer to the created QP β iconic, we love to see it π but on error NULL will be returned and errno will be set π (so like, check it, bestie, don't just vibes your way through).
π₯ SEE ALSO π₯
π AUTHOR π
Junxian Huang <huangjunxian6@hisilicon.com> β ty for your service π«Ά
<div align="center">β π β</div>
and that's the whole thing, bestie!! β¨ this page is from hns, dated 2024-02-06, and it lives in section HNSDV_CREATE_QP(3) β go slay your queue pairs ππΈπ¦
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms