RDMA/mana_ib: Fix a bug when the PF indicates more entries for registering memory...
authorLong Li <longli@microsoft.com>
Thu, 16 Feb 2023 00:32:02 +0000 (16:32 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Feb 2023 16:03:16 +0000 (12:03 -0400)
commit89d42b8c85b4c67d310c5ccaf491acbf71a260c3
tree5c5c191b5b48654e0f28e73f65ee1895cf070a4c
parent72a03627443d5bc7032ab98bd784740cd8a76f8a
RDMA/mana_ib: Fix a bug when the PF indicates more entries for registering memory on first packet

When registering memory in a large chunk that doesn't fit into a single PF
message, the PF may return GDMA_STATUS_MORE_ENTRIES on the first message if
there are more messages needed for registering more chunks.

Fix the VF to make it process the correct return code.

Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Link: https://lore.kernel.org/r/1676507522-21018-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mana/main.c