1IBV_SET_ECE(3) Libibverbs Programmer’s Manual IBV_SET_ECE(3)
2
3
4
6 ibv_set_ece - set ECE options and use them for QP configuration stage.
7
9 #include <infiniband/verbs.h>
10
11 int ibv_set_ece(struct ibv_qp *qp, struct ibv_ece *ece);
12
14 ibv_set_ece() set ECE options and use them for QP configuration stage.
15
16 The desired ECE options will be used during various modify QP stages
17 based on supported options in relevant QP state.
18
20 qp The queue pair (QP) associated with the ECE options.
21
22 ## ece Argument
23 The requested ECE values. This is IN/OUT field, the accepted
24 options will be returned in this field.
25
26 struct ibv_ece {
27 uint32_t vendor_id;
28 uint32_t options;
29 uint32_t comp_mask;
30 };
31
32 vendor_id
33 Unique identifier of the provider vendor on the network. The
34 providers will set IEEE OUI here to distinguish itself in non-
35 homogenius network.
36
37 options
38 Provider specific attributes which are supported or needed to be
39 enabled by ECE users.
40
41 comp_mask
42 Bitmask specifying what fields in the structure are valid.
43
45 ibv_set_ece() returns 0 when the call was successful, or the errno val‐
46 ue which indicates the failure reason.
47
48 EOPNOTSUPP
49 libibverbs or provider driver doesn’t support the ibv_set_ece()
50 verb.
51
52 EINVAL In one of the following: o The QP is invalid. o The ECE options
53 are invalid.
54
56 ibv_query_ece(3),
57
59 Leon Romanovsky <leonro@mellanox.com>
60
61
62
63libibverbs 2020-01-22 IBV_SET_ECE(3)