public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] RDMA/rxe: Align struct rxe_sge and struct ib_sge
@ 2025-12-25  7:19 Zhu Yanjun
  2025-12-25 12:50 ` Leon Romanovsky
  0 siblings, 1 reply; 3+ messages in thread
From: Zhu Yanjun @ 2025-12-25  7:19 UTC (permalink / raw)
  To: zyjzyj2000, jgg, leon, linux-rdma, linux-kernel; +Cc: Zhu Yanjun

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

Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
---
 drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h
index fd48075810dd..f1f6dda22b70 100644
--- a/drivers/infiniband/sw/rxe/rxe_verbs.h
+++ b/drivers/infiniband/sw/rxe/rxe_verbs.h
@@ -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
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] RDMA/rxe: Align struct rxe_sge and struct ib_sge
  2025-12-25  7:19 [PATCH 1/1] RDMA/rxe: Align struct rxe_sge and struct ib_sge Zhu Yanjun
@ 2025-12-25 12:50 ` Leon Romanovsky
  2025-12-25 17:19   ` Zhu Yanjun
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Romanovsky @ 2025-12-25 12:50 UTC (permalink / raw)
  To: Zhu Yanjun; +Cc: zyjzyj2000, jgg, linux-rdma, linux-kernel

On Thu, Dec 25, 2025 at 02:19:59AM -0500, Zhu Yanjun wrote:
> Replace struct ib_sge with struct rxe_sge in struct rxe_resp_info.
> No functional changes.
> 
> Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
> ---
>  drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h
> index fd48075810dd..f1f6dda22b70 100644
> --- a/drivers/infiniband/sw/rxe/rxe_verbs.h
> +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h
> @@ -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

>  	} srq_wqe;
>  
>  	/* Responder resources. It's a circular list where the oldest
> -- 
> 2.39.5
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] RDMA/rxe: Align struct rxe_sge and struct ib_sge
  2025-12-25 12:50 ` Leon Romanovsky
@ 2025-12-25 17:19   ` Zhu Yanjun
  0 siblings, 0 replies; 3+ messages in thread
From: Zhu Yanjun @ 2025-12-25 17:19 UTC (permalink / raw)
  To: Leon Romanovsky; +Cc: zyjzyj2000, jgg, linux-rdma, linux-kernel

在 2025/12/25 4:50, Leon Romanovsky 写道:
> On Thu, Dec 25, 2025 at 02:19:59AM -0500, Zhu Yanjun wrote:
>> Replace struct ib_sge with struct rxe_sge in struct rxe_resp_info.
>> No functional changes.
>>
>> Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
>> ---
>>   drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h
>> index fd48075810dd..f1f6dda22b70 100644
>> --- a/drivers/infiniband/sw/rxe/rxe_verbs.h
>> +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h
>> @@ -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

> 
> Thanks
> 
>>   	} srq_wqe;
>>   
>>   	/* Responder resources. It's a circular list where the oldest
>> -- 
>> 2.39.5
>>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-25 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-25  7:19 [PATCH 1/1] RDMA/rxe: Align struct rxe_sge and struct ib_sge Zhu Yanjun
2025-12-25 12:50 ` Leon Romanovsky
2025-12-25 17:19   ` Zhu Yanjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox