|
|
fa196d |
From 7472c8b823221507f83052037750dd48fdeabff3 Mon Sep 17 00:00:00 2001
|
|
|
fa196d |
From: Xiao Yang <yangx.jy@cn.fujitsu.com>
|
|
|
fa196d |
Date: Mon, 11 Jan 2021 16:57:24 +0800
|
|
|
fa196d |
Subject: [PATCH] verbs: Update the type of some variables in documents
|
|
|
fa196d |
|
|
|
fa196d |
[ Upstream commit 503ee09888b8454de502d88821b9d872faebe75a ]
|
|
|
fa196d |
|
|
|
fa196d |
The type of some variables has been changed from int to
|
|
|
fa196d |
unsigned int thus update the corresponding documents.
|
|
|
fa196d |
|
|
|
fa196d |
Fixes: 8fe7f12f1723 ("verbs: Bitwise flag values should be unsigned")
|
|
|
fa196d |
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
|
|
|
fa196d |
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
|
|
|
fa196d |
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
fa196d |
---
|
|
|
fa196d |
libibverbs/man/ibv_bind_mw.3 | 4 ++--
|
|
|
fa196d |
libibverbs/man/ibv_create_cq_ex.3 | 2 +-
|
|
|
fa196d |
libibverbs/man/ibv_modify_qp.3 | 2 +-
|
|
|
fa196d |
libibverbs/man/ibv_poll_cq.3 | 2 +-
|
|
|
fa196d |
libibverbs/man/ibv_post_send.3 | 4 ++--
|
|
|
fa196d |
libibverbs/man/ibv_query_qp.3 | 2 +-
|
|
|
fa196d |
6 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
fa196d |
|
|
|
fa196d |
diff --git a/libibverbs/man/ibv_bind_mw.3 b/libibverbs/man/ibv_bind_mw.3
|
|
|
fa196d |
index af309d000dea..6b995af7b436 100644
|
|
|
fa196d |
--- a/libibverbs/man/ibv_bind_mw.3
|
|
|
fa196d |
+++ b/libibverbs/man/ibv_bind_mw.3
|
|
|
fa196d |
@@ -28,7 +28,7 @@ is an ibv_mw_bind struct, as defined in <infiniband/verbs.h>.
|
|
|
fa196d |
struct ibv_mw_bind {
|
|
|
fa196d |
.in +8
|
|
|
fa196d |
uint64_t wr_id; /* User defined WR ID */
|
|
|
fa196d |
-int send_flags; /* Use ibv_send_flags */
|
|
|
fa196d |
+unsigned int send_flags; /* Use ibv_send_flags */
|
|
|
fa196d |
struct ibv_mw_bind_info bind_info; /* MW bind information */
|
|
|
fa196d |
.in -8
|
|
|
fa196d |
}
|
|
|
fa196d |
@@ -40,7 +40,7 @@ struct ibv_mw_bind_info {
|
|
|
fa196d |
struct ibv_mr *mr; /* The MR to bind the MW to */
|
|
|
fa196d |
uint64_t addr; /* The address the MW should start at */
|
|
|
fa196d |
uint64_t length; /* The length (in bytes) the MW should span */
|
|
|
fa196d |
-int mw_access_flags; /* Access flags to the MW. Use ibv_access_flags */
|
|
|
fa196d |
+unsigned int mw_access_flags; /* Access flags to the MW. Use ibv_access_flags */
|
|
|
fa196d |
.in -8
|
|
|
fa196d |
};
|
|
|
fa196d |
.fi
|
|
|
fa196d |
diff --git a/libibverbs/man/ibv_create_cq_ex.3 b/libibverbs/man/ibv_create_cq_ex.3
|
|
|
fa196d |
index 0f05693ec3bb..81eb37b96e75 100644
|
|
|
fa196d |
--- a/libibverbs/man/ibv_create_cq_ex.3
|
|
|
fa196d |
+++ b/libibverbs/man/ibv_create_cq_ex.3
|
|
|
fa196d |
@@ -122,7 +122,7 @@ Below members and functions are used in order to poll the current completion. Th
|
|
|
fa196d |
.BI "uint32_t ibv_wc_read_src_qp(struct ibv_cq_ex " "*cq"); \c
|
|
|
fa196d |
Get the source QP number field from the current completion.
|
|
|
fa196d |
|
|
|
fa196d |
-.BI "int ibv_wc_read_wc_flags(struct ibv_cq_ex " "*cq"); \c
|
|
|
fa196d |
+.BI "unsigned int ibv_wc_read_wc_flags(struct ibv_cq_ex " "*cq"); \c
|
|
|
fa196d |
Get the QP flags field from the current completion.
|
|
|
fa196d |
|
|
|
fa196d |
.BI "uint16_t ibv_wc_read_pkey_index(struct ibv_cq_ex " "*cq"); \c
|
|
|
fa196d |
diff --git a/libibverbs/man/ibv_modify_qp.3 b/libibverbs/man/ibv_modify_qp.3
|
|
|
fa196d |
index fd8596491e2f..a8cd19acdf54 100644
|
|
|
fa196d |
--- a/libibverbs/man/ibv_modify_qp.3
|
|
|
fa196d |
+++ b/libibverbs/man/ibv_modify_qp.3
|
|
|
fa196d |
@@ -32,7 +32,7 @@ uint32_t qkey; /* Q_Key for the QP (valid only
|
|
|
fa196d |
uint32_t rq_psn; /* PSN for receive queue (valid only for RC/UC QPs) */
|
|
|
fa196d |
uint32_t sq_psn; /* PSN for send queue (valid only for RC/UC QPs) */
|
|
|
fa196d |
uint32_t dest_qp_num; /* Destination QP number (valid only for RC/UC QPs) */
|
|
|
fa196d |
-int qp_access_flags; /* Mask of enabled remote access operations (valid only for RC/UC QPs) */
|
|
|
fa196d |
+unsigned int qp_access_flags; /* Mask of enabled remote access operations (valid only for RC/UC QPs) */
|
|
|
fa196d |
struct ibv_qp_cap cap; /* QP capabilities (valid if HCA supports QP resizing) */
|
|
|
fa196d |
struct ibv_ah_attr ah_attr; /* Primary path address vector (valid only for RC/UC QPs) */
|
|
|
fa196d |
struct ibv_ah_attr alt_ah_attr; /* Alternate path address vector (valid only for RC/UC QPs) */
|
|
|
fa196d |
diff --git a/libibverbs/man/ibv_poll_cq.3 b/libibverbs/man/ibv_poll_cq.3
|
|
|
fa196d |
index 957fd151495a..823865808202 100644
|
|
|
fa196d |
--- a/libibverbs/man/ibv_poll_cq.3
|
|
|
fa196d |
+++ b/libibverbs/man/ibv_poll_cq.3
|
|
|
fa196d |
@@ -39,7 +39,7 @@ uint32_t invalidated_rkey; /* Local RKey that was invalidated */
|
|
|
fa196d |
};
|
|
|
fa196d |
uint32_t qp_num; /* Local QP number of completed WR */
|
|
|
fa196d |
uint32_t src_qp; /* Source QP number (remote QP number) of completed WR (valid only for UD QPs) */
|
|
|
fa196d |
-int wc_flags; /* Flags of the completed WR */
|
|
|
fa196d |
+unsigned int wc_flags; /* Flags of the completed WR */
|
|
|
fa196d |
uint16_t pkey_index; /* P_Key index (valid only for GSI QPs) */
|
|
|
fa196d |
uint16_t slid; /* Source LID */
|
|
|
fa196d |
uint8_t sl; /* Service Level */
|
|
|
fa196d |
diff --git a/libibverbs/man/ibv_post_send.3 b/libibverbs/man/ibv_post_send.3
|
|
|
fa196d |
index 4fb99f7ccde0..2c488b090578 100644
|
|
|
fa196d |
--- a/libibverbs/man/ibv_post_send.3
|
|
|
fa196d |
+++ b/libibverbs/man/ibv_post_send.3
|
|
|
fa196d |
@@ -34,7 +34,7 @@ struct ibv_send_wr *next; /* Pointer to next WR in list, N
|
|
|
fa196d |
struct ibv_sge *sg_list; /* Pointer to the s/g array */
|
|
|
fa196d |
int num_sge; /* Size of the s/g array */
|
|
|
fa196d |
enum ibv_wr_opcode opcode; /* Operation type */
|
|
|
fa196d |
-int send_flags; /* Flags of the WR properties */
|
|
|
fa196d |
+unsigned int send_flags; /* Flags of the WR properties */
|
|
|
fa196d |
union {
|
|
|
fa196d |
.in +8
|
|
|
fa196d |
__be32 imm_data; /* Immediate data (in network byte order) */
|
|
|
fa196d |
@@ -103,7 +103,7 @@ struct ibv_mw_bind_info {
|
|
|
fa196d |
struct ibv_mr *mr; /* The Memory region (MR) to bind the MW to */
|
|
|
fa196d |
uint64_t addr; /* The address the MW should start at */
|
|
|
fa196d |
uint64_t length; /* The length (in bytes) the MW should span */
|
|
|
fa196d |
-int mw_access_flags; /* Access flags to the MW. Use ibv_access_flags */
|
|
|
fa196d |
+unsigned int mw_access_flags; /* Access flags to the MW. Use ibv_access_flags */
|
|
|
fa196d |
.in -8
|
|
|
fa196d |
};
|
|
|
fa196d |
.fi
|
|
|
fa196d |
diff --git a/libibverbs/man/ibv_query_qp.3 b/libibverbs/man/ibv_query_qp.3
|
|
|
fa196d |
index 907bc56a52ef..05242def03b9 100644
|
|
|
fa196d |
--- a/libibverbs/man/ibv_query_qp.3
|
|
|
fa196d |
+++ b/libibverbs/man/ibv_query_qp.3
|
|
|
fa196d |
@@ -37,7 +37,7 @@ uint32_t qkey; /* Q_Key of the QP (valid only for
|
|
|
fa196d |
uint32_t rq_psn; /* PSN for receive queue (valid only for RC/UC QPs) */
|
|
|
fa196d |
uint32_t sq_psn; /* PSN for send queue (valid only for RC/UC QPs) */
|
|
|
fa196d |
uint32_t dest_qp_num; /* Destination QP number (valid only for RC/UC QPs) */
|
|
|
fa196d |
-int qp_access_flags; /* Mask of enabled remote access operations (valid only for RC/UC QPs) */
|
|
|
fa196d |
+unsigned int qp_access_flags; /* Mask of enabled remote access operations (valid only for RC/UC QPs) */
|
|
|
fa196d |
struct ibv_qp_cap cap; /* QP capabilities */
|
|
|
fa196d |
struct ibv_ah_attr ah_attr; /* Primary path address vector (valid only for RC/UC QPs) */
|
|
|
fa196d |
struct ibv_ah_attr alt_ah_attr; /* Alternate path address vector (valid only for RC/UC QPs) */
|
|
|
fa196d |
--
|
|
|
fa196d |
2.25.4
|
|
|
fa196d |
|