diff options
author | Ajay Sharma <sharmaajay@microsoft.com> | 2022-11-03 22:16:27 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2022-11-10 08:57:27 +0300 |
commit | de372f2a9ca7ada2698ecac7df8f02407cd98fa0 (patch) | |
tree | 3add0d611ee62ee2786030269e1aadcc3991a752 /drivers/net/ethernet/microsoft/mana/hw_channel.c | |
parent | aa56549792fb348892fbbae67f6f0c71bb750b65 (diff) | |
download | linux-de372f2a9ca7ada2698ecac7df8f02407cd98fa0.tar.xz |
net: mana: Define and process GDMA response code GDMA_STATUS_MORE_ENTRIES
When doing memory registration, the PF may respond with
GDMA_STATUS_MORE_ENTRIES to indicate a follow request is needed. This is
not an error and should be processed as expected.
Signed-off-by: Ajay Sharma <sharmaajay@microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Long Li <longli@microsoft.com>
Link: https://lore.kernel.org/r/1667502990-2559-10-git-send-email-longli@linuxonhyperv.com
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/microsoft/mana/hw_channel.c')
-rw-r--r-- | drivers/net/ethernet/microsoft/mana/hw_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.c b/drivers/net/ethernet/microsoft/mana/hw_channel.c index 76829ab43d40..9d1507eba5b9 100644 --- a/drivers/net/ethernet/microsoft/mana/hw_channel.c +++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c @@ -836,7 +836,7 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len, goto out; } - if (ctx->status_code) { + if (ctx->status_code && ctx->status_code != GDMA_STATUS_MORE_ENTRIES) { dev_err(hwc->dev, "HWC: Failed hw_channel req: 0x%x\n", ctx->status_code); err = -EPROTO; |