File: efadv_create_qp_ex.3.md

package info (click to toggle)
rdma-core 56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,196 kB
  • sloc: ansic: 171,361; python: 13,724; sh: 2,774; perl: 1,465; makefile: 73
file content (85 lines) | stat: -rw-r--r-- 1,916 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
layout: page
title: EFADV_CREATE_QP_EX
section: 3
tagline: Verbs
date: 2019-08-06
header: "EFA Direct Verbs Manual"
footer: efa
---

# NAME

efadv_create_qp_ex - Create EFA specific extended Queue Pair

# SYNOPSIS

```c
#include <infiniband/efadv.h>

struct ibv_qp *efadv_create_qp_ex(struct ibv_context *ibvctx,
				  struct ibv_qp_init_attr_ex *attr_ex,
				  struct efadv_qp_init_attr *efa_attr,
				  uint32_t inlen);
```

# DESCRIPTION

**efadv_create_qp_ex()** creates device-specific extended Queue Pair.

The argument attr_ex is an ibv_qp_init_attr_ex struct,
as defined in <infiniband/verbs.h>.

Use ibv_qp_to_qp_ex() to get the ibv_qp_ex for accessing the send ops
iterator interface, when QP create attr IBV_QP_INIT_ATTR_SEND_OPS_FLAGS is used.

Scalable Reliable Datagram (SRD) transport provides reliable out-of-order
delivery, transparently utilizing multiple network paths to reduce network tail
latency. Its interface is similar to UD, in particular it supports message size
up to MTU, with error handling extended to support reliable communication.

Compatibility is handled using the comp_mask and inlen fields.

```c
struct efadv_qp_init_attr {
	uint64_t comp_mask;
	uint32_t driver_qp_type;
	uint16_t flags;
	uint8_t sl;
	uint8_t reserved[1];
};
```

*inlen*
:	In: Size of struct efadv_qp_init_attr.

*comp_mask*
:	Compatibility mask.

*driver_qp_type*
:	The type of QP to be created:

	EFADV_QP_DRIVER_TYPE_SRD:
		Create an SRD QP.

*flags*
:       A bitwise OR of the values described below.

	EFADV_QP_FLAGS_UNSOLICITED_WRITE_RECV:
		Receive WRs will not be consumed for RDMA write with imm.

*sl*
:	Service Level - 0 value implies default level.

# RETURN VALUE

efadv_create_qp_ex() returns a pointer to the created QP, or NULL if the request fails.

# SEE ALSO

**efadv**(7), **ibv_create_qp_ex**(3)

# AUTHORS

Gal Pressman <galpress@amazon.com>
Daniel Kranzdorf <dkkranzd@amazon.com>