* [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs
@ 2024-06-04 11:56 Konstantin Taranov
2024-06-04 13:03 ` Leon Romanovsky
0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Taranov @ 2024-06-04 11:56 UTC (permalink / raw)
To: kotaranov, sharmaajay, longli, jgg, leon; +Cc: linux-rdma, linux-kernel
From: Konstantin Taranov <kotaranov@microsoft.com>
Ignore optional ib_access_flags when an MR is created.
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
---
drivers/infiniband/hw/mana/mr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/infiniband/hw/mana/mr.c b/drivers/infiniband/hw/mana/mr.c
index 4f13423..887b09d 100644
--- a/drivers/infiniband/hw/mana/mr.c
+++ b/drivers/infiniband/hw/mana/mr.c
@@ -112,6 +112,7 @@ struct ib_mr *mana_ib_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length,
"start 0x%llx, iova 0x%llx length 0x%llx access_flags 0x%x",
start, iova, length, access_flags);
+ access_flags &= ~IB_ACCESS_OPTIONAL;
if (access_flags & ~VALID_MR_FLAGS)
return ERR_PTR(-EINVAL);
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs
2024-06-04 11:56 [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs Konstantin Taranov
@ 2024-06-04 13:03 ` Leon Romanovsky
0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2024-06-04 13:03 UTC (permalink / raw)
To: Konstantin Taranov
Cc: kotaranov, sharmaajay, longli, jgg, linux-rdma, linux-kernel
On Tue, Jun 04, 2024 at 04:56:02AM -0700, Konstantin Taranov wrote:
> From: Konstantin Taranov <kotaranov@microsoft.com>
>
> Ignore optional ib_access_flags when an MR is created.
>
> Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
> ---
> drivers/infiniband/hw/mana/mr.c | 1 +
> 1 file changed, 1 insertion(+)
Please add Fixes line.
Thanks
>
> diff --git a/drivers/infiniband/hw/mana/mr.c b/drivers/infiniband/hw/mana/mr.c
> index 4f13423..887b09d 100644
> --- a/drivers/infiniband/hw/mana/mr.c
> +++ b/drivers/infiniband/hw/mana/mr.c
> @@ -112,6 +112,7 @@ struct ib_mr *mana_ib_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length,
> "start 0x%llx, iova 0x%llx length 0x%llx access_flags 0x%x",
> start, iova, length, access_flags);
>
> + access_flags &= ~IB_ACCESS_OPTIONAL;
> if (access_flags & ~VALID_MR_FLAGS)
> return ERR_PTR(-EINVAL);
>
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-04 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04 11:56 [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs Konstantin Taranov
2024-06-04 13:03 ` Leon Romanovsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox