diff options
author | Konstantin Taranov <kotaranov@microsoft.com> | 2024-06-05 01:16:08 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2024-06-21 10:19:36 -0300 |
commit | 82a5cc783d49b86afd2f60e297ecd85223c39f88 (patch) | |
tree | 6d99188c63733ff5cf69db3db9da973520b0635f /drivers/infiniband | |
parent | 36ab7ada64caf08f10ee5a114d39964d1f91e81d (diff) | |
download | linux-82a5cc783d49b86afd2f60e297ecd85223c39f88.tar.gz linux-82a5cc783d49b86afd2f60e297ecd85223c39f88.tar.bz2 linux-82a5cc783d49b86afd2f60e297ecd85223c39f88.zip |
RDMA/mana_ib: Ignore optional access flags for MRs
Ignore optional ib_access_flags when an MR is created.
Fixes: 0266a177631d ("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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/mana/mr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mana/mr.c b/drivers/infiniband/hw/mana/mr.c index 4f13423ecdbd..887b09dd86e7 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); |