Skip to content

Commit 82a5cc7

Browse files
Konstantin Taranovjgunthorpe
authored andcommitted
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>
1 parent 36ab7ad commit 82a5cc7

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)