Re: [PATCH] RDMA/siw: Fix length of first chunk in siw_try_1seg()
From: Jason Gunthorpe
Date: Tue Sep 29 2026 - 19:02:39 EST
On Sun, Sep 27, 2026 at 02:53:51PM +0300, Serhat Kumral wrote:
> When a short-single SGE payload crosses a page boundary, siw_try_1seg()
> computes the length of the first chunk as the amount that spills into
> the second page instead of the amount left in the first page
>
> part = bytes - (PAGE_SIZE - off);
>
> Use the remaining length of the first page as the first chunk.
>
> Fixes: b9be6f18cf9e ("rdma/siw: transmit path")
> Assisted-by: LLM
> Signed-off-by: Serhat Kumral <serhatkumral1@xxxxxxxxx>
> Acked-by: Bernard Metzler <bernard.metzler@xxxxxxxxx>
> ---
> drivers/infiniband/sw/siw/siw_qp_tx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next, thanks
Jason