Skip to content

Commit 2b1f16b

Browse files
author
Maxim Levitsky
committed
RDMA/mana_ib: Ignore optional access flags for MRs
JIRA: https://issues.redhat.com/browse/RHEL-54330 commit 82a5cc7 Author: Konstantin Taranov <kotaranov@microsoft.com> Date: Wed Jun 5 01:16:08 2024 -0700 RDMA/mana_ib: Ignore optional access flags for MRs Ignore optional ib_access_flags when an MR is created. Fixes: 0266a17 ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter") Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Link: https://lore.kernel.org/r/1717575368-14879-1-git-send-email-kotaranov@linux.microsoft.com Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
1 parent aad7e7a commit 2b1f16b

File tree

1 file changed

+1
-0
lines changed
  • drivers/infiniband/hw/mana

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/mana/mr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ struct ib_mr *mana_ib_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length,
112112
"start 0x%llx, iova 0x%llx length 0x%llx access_flags 0x%x",
113113
start, iova, length, access_flags);
114114

115+
access_flags &= ~IB_ACCESS_OPTIONAL;
115116
if (access_flags & ~VALID_MR_FLAGS)
116117
return ERR_PTR(-EINVAL);
117118

0 commit comments

Comments
 (0)