From: Leon Romanovsky <leon@kernel.org>
To: Konstantin Taranov <kotaranov@linux.microsoft.com>
Cc: kotaranov@microsoft.com, sharmaajay@microsoft.com,
longli@microsoft.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs
Date: Tue, 4 Jun 2024 16:03:30 +0300 [thread overview]
Message-ID: <20240604130330.GS3884@unreal> (raw)
In-Reply-To: <1717502162-4161-1-git-send-email-kotaranov@linux.microsoft.com>
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
>
prev parent reply other threads:[~2024-06-04 13:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240604130330.GS3884@unreal \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kotaranov@linux.microsoft.com \
--cc=kotaranov@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=sharmaajay@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox