Re: [PATCH rdma-next 1/1] RDMA/mana_ib: memory windows

From: Leon Romanovsky

Date: Mon Mar 16 2026 - 12:15:16 EST


On Fri, Mar 06, 2026 at 02:57:58AM -0800, Konstantin Taranov wrote:
> From: Konstantin Taranov <kotaranov@xxxxxxxxxxxxx>
>
> Implement .alloc_mw() and .dealloc_mw() for mana device.
>
> Signed-off-by: Konstantin Taranov <kotaranov@xxxxxxxxxxxxx>
> ---
> As I see that Jason's rdma_uapi is not in the next yet. I will make a patch
> adding his helpers (e.g., ib_is_udata_in_empty() for mw) with all other
> api calls.
> drivers/infiniband/hw/mana/device.c | 3 ++
> drivers/infiniband/hw/mana/mana_ib.h | 8 ++++
> drivers/infiniband/hw/mana/mr.c | 57 +++++++++++++++++++++++++++-
> include/net/mana/gdma.h | 5 +++
> 4 files changed, 72 insertions(+), 1 deletion(-)

<...>

> + err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp);
> + if (err || resp.hdr.status) {
> + if (!err)
> + err = -EPROTO;
> +
> + return err;
> + }

We already had this discussion about this specific pattern.
https://lore.kernel.org/linux-rdma/20260127141929.GV13967@unreal/

Please fix it first.

Thanks