Skip to contentSkip to conversation

RDMA/rxe: Align struct rxe_sge and struct ib_sge

PATCH In review Zhu Yanjun 2 participants 3 messages Dec 25, 2025

Subsystems (2)
lore
Share & tools
lore

Zhu Yanjun

author
#0 lore raw

PATCH 1/1 RDMA/rxe: Align struct rxe_sge and struct ib_sge

Replace struct ib_sge with struct rxe_sge in struct rxe_resp_info. No functional changes.

---
 drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.h +1 -1
index fd48075810dd..f1f6dda22b70 100644
@@ -222,7 +222,7 @@ struct rxe_resp_info {
 	/* SRQ only */
 	struct {
 		struct rxe_recv_wqe	wqe;
-		struct ib_sge		sge[RXE_MAX_SGE];
+		struct rxe_sge		sge[RXE_MAX_SGE];
 	} srq_wqe;
 
 	/* Responder resources. It's a circular list where the oldest
Signature · 1 line
2.39.5
#1 lore raw
Quoted 13 lines · Zhu Yanjun

Replace struct ib_sge with struct rxe_sge in struct rxe_resp_info. No functional changes.

---
 drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.h +0 -0
index fd48075810dd..f1f6dda22b70 100644

drivers/infiniband/sw/rxe/rxe_verbs.h struct rxe_resp_info { · line 225

Quoted 5 lines
drivers/infiniband/sw/rxe/rxe_verbs.h +1 -1
@@ -222,7 +222,7 @@ struct rxe_resp_info {
 	/* SRQ only */
 	struct {
 		struct rxe_recv_wqe	wqe;
-		struct ib_sge		sge[RXE_MAX_SGE];
+		struct rxe_sge		sge[RXE_MAX_SGE];

I would expect extra changes in addition to this one. For example, in the SRQ code which allocates the WQE size. Maybe in other places too.

Thanks

Quoted 6 lines
drivers/infiniband/sw/rxe/rxe_verbs.h +0 -0
 	} srq_wqe;
 
 	/* Responder resources. It's a circular list where the oldest
Signature · 1 line
2.39.5
author
#2 lore raw
Quoted 9 lines · Leon Romanovsky
Quoted 8 lines · Zhu Yanjun

Replace struct ib_sge with struct rxe_sge in struct rxe_resp_info. No functional changes.

---
  drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

drivers/infiniband/sw/rxe/rxe_verbs.h struct rxe_resp_info { · line 225

Quoted 10 lines
drivers/infiniband/sw/rxe/rxe_verbs.h +1 -1
index fd48075810dd..f1f6dda22b70 100644
@@ -222,7 +222,7 @@ struct rxe_resp_info {
  	/* SRQ only */
  	struct {
  		struct rxe_recv_wqe	wqe;
-		struct ib_sge		sge[RXE_MAX_SGE];
+		struct rxe_sge		sge[RXE_MAX_SGE];

I would expect extra changes in addition to this one. For example, in the SRQ code which allocates the WQE size. Maybe in other places too.

Got it. I will do.

Thanks,
Yanjun.Zhu

Quoted 9 lines

Thanks

Quoted 6 lines
drivers/infiniband/sw/rxe/rxe_verbs.h +0 -0
  	} srq_wqe;
 
  	/* Responder resources. It's a circular list where the oldest
Signature · 1 line
2.39.5