| 1 | --- |
| 2 | date: 2020-01-22 |
| 3 | footer: libibverbs |
| 4 | header: "Libibverbs Programmer's Manual" |
| 5 | layout: page |
| 6 | license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md' |
| 7 | section: 3 |
| 8 | title: IBV_SET_ECE |
| 9 | --- |
| 10 | |
| 11 | # NAME |
| 12 | |
| 13 | ibv_set_ece - set ECE options and use them for QP configuration stage. |
| 14 | |
| 15 | # SYNOPSIS |
| 16 | |
| 17 | ```c |
| 18 | #include <infiniband/verbs.h> |
| 19 | |
| 20 | int ibv_set_ece(struct ibv_qp *qp, struct ibv_ece *ece); |
| 21 | ``` |
| 22 | |
| 23 | # DESCRIPTION |
| 24 | |
| 25 | **ibv_set_ece()** set ECE options and use them for QP configuration stage. |
| 26 | |
| 27 | The desired ECE options will be used during various modify QP stages |
| 28 | based on supported options in relevant QP state. |
| 29 | |
| 30 | # ARGUMENTS |
| 31 | *qp* |
| 32 | : The queue pair (QP) associated with the ECE options. |
| 33 | |
| 34 | ## *ece* Argument |
| 35 | : The requested ECE values. This is IN/OUT field, the accepted options |
| 36 | will be returned in this field. |
| 37 | |
| 38 | ```c |
| 39 | struct ibv_ece { |
| 40 | uint32_t vendor_id; |
| 41 | uint32_t options; |
| 42 | uint32_t comp_mask; |
| 43 | }; |
| 44 | ``` |
| 45 | |
| 46 | *vendor_id* |
| 47 | : Unique identifier of the provider vendor on the network. |
| 48 | The providers will set IEEE OUI here to distinguish itself |
| 49 | in non-homogenius network. |
| 50 | |
| 51 | *options* |
| 52 | : Provider specific attributes which are supported or |
| 53 | needed to be enabled by ECE users. |
| 54 | |
| 55 | *comp_mask* |
| 56 | : Bitmask specifying what fields in the structure are valid. |
| 57 | |
| 58 | # RETURN VALUE |
| 59 | |
| 60 | **ibv_set_ece()** returns 0 when the call was successful, or the errno value |
| 61 | which indicates the failure reason. |
| 62 | |
| 63 | *EOPNOTSUPP* |
| 64 | : libibverbs or provider driver doesn't support the ibv_set_ece() verb. |
| 65 | |
| 66 | *EINVAL* |
| 67 | : In one of the following: |
| 68 | o The QP is invalid. |
| 69 | o The ECE options are invalid. |
| 70 | |
| 71 | # SEE ALSO |
| 72 | |
| 73 | **ibv_query_ece**(3), |
| 74 | |
| 75 | # AUTHOR |
| 76 | |
| 77 | Leon Romanovsky <[email protected]> |
| 78 |