IBV_QUERY_ECE(3)
π IBV_QUERY_ECE(3) π
ok so this is a page from the Libibverbs Programmer's Manual, and honestly? it's a lil cutie. let's get into it bestie π«Ά
β¨ NAME β¨
ibv_query_ece β query ECE options. that's it, that's the vibe π
β¨ SYNOPSIS β¨
#include <infiniband/verbs.h>
int ibv_query_ece(struct ibv_qp *qp, struct ibv_ece *ece);
β¨ DESCRIPTION β¨
okay so ibv_query_ece() queries the ECE options. simple as that, no cap πΈ
what it does is hand you back the current ECE state for the QP. like, right now, as it stands. current. present tense. main character energy β¨
β¨ ARGUMENTS β¨
qpβ the queue pair (QP) that's associated with these ECE options. the QP in question, if you will π
π ece Argument π
this one is the ECE values themselves. the actual data. the goods π¦
struct ibv_ece {
uint32_t vendor_id;
uint32_t options;
uint32_t comp_mask;
};
vendor_idβ the unique identifier of the provider vendor on the network. the providers will set the IEEE OUI here so they can distinguish themselves in a non-homogenius network. yep, that's the whole point of it π¦ (heads up: the original page really does spell it "non-hoβmogenius", so that's the word we're going with, iykyk)optionsβ provider specific attributes which are supported. every provider's got their own lil set of extras and this is where they live πcomp_maskβ bitmask specifying what fields in the structure are valid. basically the "which of these actually mean something rn" flag π₯
β¨ RETURN VALUE β¨
ibv_query_ece() returns 0 when the call was successful ππ or, if things went sideways, the errno value which indicates the failure reason π
EOPNOTSUPPβ libibverbs or the provider driver doesn't support theibv_set_ece()verb. not supported, not happening, not today πEINVALβ happens in one of the following cases:- the QP is invalid π
- the ECE options are invalid π
β¨ SEE ALSO β¨
β¨ AUTHOR β¨
Leon Romanovsky <leonro@mellanox.com> π
and that's the whole page babes π this one's from libibverbs, dated 2020-01-22 β go forth and query those ECE options, you absolute icon π
π¦ 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
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms