Re: [PATCH] RDMA/mana_ib: Fix a bug when the PF indicates more entries for registering memory on first packet

From: Jason Gunthorpe
Date: Thu Feb 16 2023 - 11:05:14 EST


On Wed, Feb 15, 2023 at 04:32:02PM -0800, longli@xxxxxxxxxxxxxxxxx wrote:
> From: Long Li <longli@xxxxxxxxxxxxx>
>
> 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")
> Signed-off-by: Long Li <longli@xxxxxxxxxxxxx>
> ---
> drivers/infiniband/hw/mana/main.c | 22 ++++++++++++----------
> 1 file changed, 12 insertions(+), 10 deletions(-)

Applied to for-next, thanks

Jason