EFADV_QUERY_QP_WQS(3)
β¨ NAME β¨
efadv_query_qp_wqs β okay bestie, this is the one that queries the EFA-specific Queue Pair work queue attributes π
. And real quick, the manual name is EFA Direct Verbs Manual, so jot that down π.
πΈ SYNOPSIS πΈ
#include <infiniband/efadv.h>
int efadv_query_qp_wqs(struct ibv_qp *ibvqp, struct efadv_wq_attr *sq_attr,
struct efadv_wq_attr *rq_attr, uint32_t inlen);
π DESCRIPTION π
So efadv_query_qp_wqs() is literally the function you call when you need the device-specific Queue Pair work queue attributes π. It's giving "tell me everything about these WQs" energy, and we love that for us.
Compatibility is handled using the comp_mask and inlen fields β no cap, that's just how it works π«Ά.
struct efadv_wq_attr {
uint64_t comp_mask;
uint8_t *buffer;
uint32_t entry_size;
uint32_t num_entries;
uint32_t *doorbell;
uint32_t max_batch;
uint16_t caps;
uint8_t reserved[2];
};
inlenβ In: size ofstruct efadv_wq_attr, bestie. That's the input length vibe check β¨.comp_maskβ compatibility mask, iconic for keeping things compatible π.bufferβ the queue buffer, literally where the queue lives π¦.entry_sizeβ size of each entry in the queue, so each lil entry knows its size π .num_entriesβ maximal number of entries in the queue, the absolute max, periodt π₯.doorbellβ the queue doorbell, ding dong, submissions incoming π.max_batchβ maximum batch size for queue submissions, batch queen behavior πΈ.capsβ work queue capabilities, and here's the tea:EFADV_WQ_CAPS_64_BIT_REQ_IDβ work queue supports posting requests with 64-bit IDs. When set, the associated completion queue is guaranteed to return 64-bit request IDs as well. No cap, 64-bit IDs all the way down π.
π RETURN VALUE π
efadv_query_qp_wqs() returns 0 on success, or the value of errno on failure β and that failure value tells you the failure reason, so you're not left guessing π.
π¦ SEE ALSO π¦
π NOTES π
- Compatibility mask (
comp_mask) is an out field and currently has no values. That's it, that's the note β don't come for me, I'm just the messenger π.
π AUTHORS π
Michael Margolin mrgolin@amazon.com β periodt, credit where credit is due π«Ά.
Source/version: efa β date: 2025-05-14, and that's the cute lil sign-off, bestie. Bye, slay, and may your queues always be queried correctly πβ¨π
π¦ where this page comes from
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms