Debian Codegraph @

libibverbs/man/ibv_query_qp_data_in_order.3.md

raw symbols SCIP
1 ---
2 date: 2020-3-3
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_query_qp_data_in_order
9 ---
10
11 # NAME
12
13 ibv_query_qp_data_in_order - check if qp data is guaranteed to be in order.
14
15 # SYNOPSIS
16
17 ```c
18 #include <infiniband/verbs.h>
19
20 int ibv_query_qp_data_in_order(struct ibv_qp *qp, enum ibv_wr_opcode op, uint32_t flags);
21
22 ```
23
24
25 # DESCRIPTION
26
27 **ibv_query_qp_data_in_order()** Checks whether WQE data is guaranteed to be
28 written in-order, and thus reader may poll for data instead of poll for completion.
29 This function indicates data is written in-order within each WQE, but cannot be used to determine ordering between separate WQEs.
30 This function describes ordering at the receiving side of the QP, not the sending side.
31
32 # ARGUMENTS
33 *qp*
34 : The local queue pair (QP) to query.
35
36 *op*
37 : The operation type to query about. Different operation types may write data in a different order.
38 For RDMA read operations: describes ordering of RDMA reads posted on this local QP.
39 For RDMA write operations: describes ordering of remote RDMA writes being done into this local QP.
40 For RDMA send operations: describes ordering of remote RDMA sends being done into this local QP.
41 This function should not be used to determine ordering of other operation types.
42
43 *flags*
44 : Flags are used to select a query type. Supported values:
45
46 IBV_QUERY_QP_DATA_IN_ORDER_RETURN_CAPS - Query for supported capabilities and return a capabilities vector.
47
48 IBV_QUERY_QP_DATA_IN_ORDER_DEVICE_ONLY - Allows querying only the RDMA device side support for data-in-order semantics
49 without enforcing host CPU architecture restrictions. It is the responsibility of the application
50 to ensure data-in-order semantics support for the host CPU or receiver device.
51
52 Passing 0 is equivalent to using IBV_QUERY_QP_DATA_IN_ORDER_RETURN_CAPS and checking for IBV_QUERY_QP_DATA_IN_ORDER_WHOLE_MSG support.
53
54 # RETURN VALUE
55
56 **ibv_query_qp_data_in_order()** Return value is determined by flags. For each capability bit, 1 is returned if the data is guaranteed to be written in-order for selected operation and type, 0 otherwise.
57 If IBV_QUERY_QP_DATA_IN_ORDER_RETURN_CAPS flag is used, return value can consist of following capabilities:
58
59 IBV_QUERY_QP_DATA_IN_ORDER_WHOLE_MSG - All data is being written in order.
60
61 IBV_QUERY_QP_DATA_IN_ORDER_ALIGNED_128_BYTES - Each 128 bytes aligned block is being written in order.
62
63 If flags is 0, the function will return 1 if IBV_QUERY_QP_DATA_IN_ORDER_WHOLE_MSG is supported and 0 otherwise.
64
65 # NOTES
66
67 Return value is valid only when the data is read by the CPU and relaxed ordering MR is not the target of the transfer.
68
69 # SEE ALSO
70
71 **ibv_query_qp**(3)
72
73 # AUTHOR
74
75 Patrisious Haddad <[email protected]>
76
77 Yochai Cohen <[email protected]>