From: Michal Krawczyk Date: Thu, 17 Sep 2020 05:30:18 +0000 (+0200) Subject: net/ena/base: support admin status for resource busy X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8eaf9fed0d940c22e51ab45d4424c38680f8d08d;p=dpdk.git net/ena/base: support admin status for resource busy The admin command could return ENA_ADMIN_RESOURCE_BUSY status, which is meaning that currently the given resource cannot be used. However, the request can be repeated, so it's being converted to the ENA_COM_TRY_AGAIN error code. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik Reviewed-by: Stephen Hemminger --- diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c index 6257c535b1..0a6a92ebea 100644 --- a/drivers/net/ena/base/ena_com.c +++ b/drivers/net/ena/base/ena_com.c @@ -517,6 +517,8 @@ static int ena_com_comp_status_to_errno(u8 comp_status) case ENA_ADMIN_ILLEGAL_PARAMETER: case ENA_ADMIN_UNKNOWN_ERROR: return ENA_COM_INVAL; + case ENA_ADMIN_RESOURCE_BUSY: + return ENA_COM_TRY_AGAIN; } return ENA_COM_INVAL;