Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1412 from amzn/query-mr
Add query MR EFA direct verb
- Loading branch information
Showing
14 changed files
with
284 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,8 @@ EFA_1.2 { | |
efadv_create_cq; | ||
efadv_wc_read_sgid; | ||
} EFA_1.1; | ||
|
||
EFA_1.3 { | ||
global: | ||
efadv_query_mr; | ||
} EFA_1.2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ rdma_man_pages( | |
efadv_create_qp_ex.3.md | ||
efadv_query_ah.3.md | ||
efadv_query_device.3.md | ||
efadv_query_mr.3.md | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
--- | ||
layout: page | ||
title: EFADV_QUERY_MR | ||
section: 3 | ||
tagline: Verbs | ||
date: 2023-11-13 | ||
header: "EFA Direct Verbs Manual" | ||
footer: efa | ||
--- | ||
|
||
# NAME | ||
|
||
efadv_query_mr - Query EFA specific Memory Region attributes | ||
|
||
# SYNOPSIS | ||
|
||
```c | ||
#include <infiniband/efadv.h> | ||
|
||
int efadv_query_mr(struct ibv_mr *ibvmr, struct efadv_mr_attr *attr, uint32_t inlen); | ||
``` | ||
# DESCRIPTION | ||
**efadv_query_mr()** queries device-specific Memory Region attributes. | ||
Compatibility is handled using the comp_mask and inlen fields. | ||
```c | ||
struct efadv_mr_attr { | ||
uint64_t comp_mask; | ||
uint16_t ic_id_validity; | ||
uint16_t recv_ic_id; | ||
uint16_t rdma_read_ic_id; | ||
uint16_t rdma_recv_ic_id; | ||
}; | ||
``` | ||
|
||
*inlen* | ||
: In: Size of struct efadv_mr_attr. | ||
|
||
*comp_mask* | ||
: Compatibility mask. | ||
|
||
*ic_id_validity* | ||
: Validity mask of interconnect id fields: | ||
|
||
EFADV_MR_ATTR_VALIDITY_RECV_IC_ID: | ||
recv_ic_id has a valid value. | ||
|
||
EFADV_MR_ATTR_VALIDITY_RDMA_READ_IC_ID: | ||
rdma_read_ic_id has a valid value. | ||
|
||
EFADV_MR_ATTR_VALIDITY_RDMA_RECV_IC_ID: | ||
rdma_recv_ic_id has a valid value. | ||
|
||
*recv_ic_id* | ||
: Physical interconnect used by the device to reach the MR for receive operation. | ||
|
||
*rdma_read_ic_id* | ||
: Physical interconnect used by the device to reach the MR for RDMA read operation. | ||
|
||
*rdma_recv_ic_id* | ||
: Physical interconnect used by the device to reach the MR for RDMA write receive. | ||
|
||
# RETURN VALUE | ||
|
||
**efadv_query_mr()** returns 0 on success, or the value of errno on failure | ||
(which indicates the failure reason). | ||
|
||
# SEE ALSO | ||
|
||
**efadv**(7) | ||
|
||
# NOTES | ||
|
||
* Compatibility mask (comp_mask) is an out field and currently has no values. | ||
|
||
# AUTHORS | ||
|
||
Michael Margolin <mrgolin@amazon.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.