From: Bob Pearson <rpearsonhpe@gmail.com>
To: jgg@nvidia.com, zyjzyj2000@gmail.com, linux-rdma@vger.kernel.org
Cc: Bob Pearson <rpearsonhpe@gmail.com>
Subject: [PATCH 1/5] RDMA/rxe: Change user/kernel API to allow indexing AH
Date: Mon, 28 Jun 2021 17:00:40 -0500 [thread overview]
Message-ID: <20210628220043.9851-2-rpearsonhpe@gmail.com> (raw)
In-Reply-To: <20210628220043.9851-1-rpearsonhpe@gmail.com>
Make changes to rdma_user_rxe.h to allow indexing AH objects, passing
the index in UD send WRs to the driver and returning the index to the rxe
provider. This change will allow removing handling of the AV in the user
space provider. This change is backwards compatible with the current API
so new or old providers and drivers can work together.
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
---
include/uapi/rdma/rdma_user_rxe.h | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/include/uapi/rdma/rdma_user_rxe.h b/include/uapi/rdma/rdma_user_rxe.h
index e283c2220aba..e544832ed073 100644
--- a/include/uapi/rdma/rdma_user_rxe.h
+++ b/include/uapi/rdma/rdma_user_rxe.h
@@ -98,6 +98,8 @@ struct rxe_send_wr {
__u32 remote_qpn;
__u32 remote_qkey;
__u16 pkey_index;
+ __u16 reserved;
+ __u32 ah_num;
} ud;
struct {
__aligned_u64 addr;
@@ -148,7 +150,12 @@ struct rxe_dma_info {
struct rxe_send_wqe {
struct rxe_send_wr wr;
- struct rxe_av av;
+ union {
+ struct rxe_av av;
+ struct {
+ __u32 reserved[0];
+ } ex;
+ };
__u32 status;
__u32 state;
__aligned_u64 iova;
@@ -168,6 +175,11 @@ struct rxe_recv_wqe {
struct rxe_dma_info dma;
};
+struct rxe_create_ah_resp {
+ __u32 ah_num;
+ __u32 reserved;
+};
+
struct rxe_create_cq_resp {
struct mminfo mi;
};
--
2.30.2
next prev parent reply other threads:[~2021-06-28 22:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-28 22:00 [PATCH for-next 0/5] Replace AV by AH in UD sends Bob Pearson
2021-06-28 22:00 ` Bob Pearson [this message]
2021-07-16 17:44 ` [PATCH 1/5] RDMA/rxe: Change user/kernel API to allow indexing AH Jason Gunthorpe
2021-07-16 17:55 ` Bob Pearson
2021-07-16 18:03 ` Jason Gunthorpe
2021-06-28 22:00 ` [PATCH 2/5] RDMA/rxe: Change AH objects to indexed Bob Pearson
2021-06-28 22:00 ` [PATCH 3/5] RDMA/rxe: Create AH index and return to user space Bob Pearson
2021-06-28 22:00 ` [PATCH 4/5] RDMA/rxe: Lookup kernel AH from ah index in UD WQEs Bob Pearson
2021-06-28 22:00 ` [PATCH 5/5] RDMA/rxe: Convert kernel UD post send to use ah_num Bob Pearson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210628220043.9851-2-rpearsonhpe@gmail.com \
--to=rpearsonhpe@gmail.com \
--cc=jgg@nvidia.com \
--cc=linux-rdma@vger.kernel.org \
--cc=zyjzyj2000@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.