net/ena/base: support admin status for resource busy
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:18 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit8eaf9fed0d940c22e51ab45d4424c38680f8d08d
treee0f33dc8327715a1757918c37d6f9cf6bbbe31e9
parent5ec22f97b6300ff65f89c8cb0fa072de139ac520
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 <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/ena/base/ena_com.c