IBV_SET_ECE(3)
π IBV_SET_ECE β bestie, let's talk ECE
okay so real quick, this whole page is from the Libibverbs Programmer's Manual and it's literally about ibv_set_ece β the little verb that sets your ECE options and then actually uses them at the QP configuration stage. it's giving "set it and let the QP cook" β¨
β¨ NAME β¨
ibv_set_ece β set ECE options and use them for QP configuration stage.
periodt, that's the whole vibe.
π¦ SYNOPSIS π¦
#include <infiniband/verbs.h>
int ibv_set_ece(struct ibv_qp *qp, struct ibv_ece *ece);
πΈ DESCRIPTION πΈ
so ibv_set_ece() sets ECE options and uses them for the QP configuration stage. no cap, that's the job π
the desired ECE options get used during various modify QP stages, based on which options are supported in the relevant QP state. iykyk β it's state-dependent, bestie.
π ARGUMENTS π
qpβ the queue pair (QP) that's associated with the ECE options.
π ece Argument π
the requested ECE values. this is an IN/OUT field, which means the accepted options get returned right back in this same field. slay, bidirectional communication π«Ά
struct ibv_ece {
uint32_t vendor_id;
uint32_t options;
uint32_t comp_mask;
};
vendor_idβ unique identifier of the provider vendor on the network. providers set the IEEE OUI here so they can distinguish themselves in a non-homogenius network. iconic self-identification moment πoptionsβ provider specific attributes which are supported or needed to be enabled by ECE users.comp_maskβ bitmask specifying what fields in the structure are valid.
π₯ RETURN VALUE π₯
ibv_set_ece() returns 0 when the call was successful, or the errno value which indicates the failure reason. so 0 = we ate, anything else = something went sideways π
EOPNOTSUPPβ libibverbs or the provider driver doesn't support theibv_set_ece()verb. literally not supported, don't come for it πEINVALβ in one of the following:- the QP is invalid.
- the ECE options are invalid.
fr fr, check both before you blame the driver.
π SEE ALSO π
(yes, there's a trailing comma in the original, i don't make the rules π)
π AUTHOR π
Leon Romanovsky <leonro@mellanox.com>
okay bestie that's the whole page, go forth and configure your QPs π β¨
sign-off from the libibverbs era, dated 2020-01-22 β this manpage is literally a whole vibe, main character energy from start to finish π¦π
π¦ 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