net/ena/base: make delay exponential in polling functions
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:19 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit0c84e04824db69672d0691a0a96a92c29740705d
tree40df9161ed266ba4781508f96779dad1c0e9f484
parent8eaf9fed0d940c22e51ab45d4424c38680f8d08d
net/ena/base: make delay exponential in polling functions

Instead of the fixes, 5 ms delay in the polling functions, use
values into given range (by default from 100 us 5000 us) and increase
them exponentially each time, the operation isn't finished.

This change can improve responsiveness of the driver for the fast
operations.

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
drivers/net/ena/base/ena_com.h
drivers/net/ena/base/ena_plat_dpdk.h