OSDN Git Service

net: ena: improve ENA driver boot time.
authorNetanel Belgazal <netanel@amazon.com>
Tue, 17 Oct 2017 07:33:56 +0000 (07:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2017 11:51:36 +0000 (12:51 +0100)
commit88aef2f51c9e3640268aca04a256b8f26cf6bdff
treed4fae7abad1fe91392e26847f37ea7b892a2d203
parentc057c68303b13387d9849a33557057ef428c2d3c
net: ena: improve ENA driver boot time.

The ena admin commands timeout is in resolutions of 100ms.
Therefore, When the driver works in polling mode, it sleeps for 100ms
each time. The overall boot time of the ENA driver is ~1.5 sec.
To reduce the boot time, This change modifies the granularity of
the sleeps to 5ms.
This change improves the boot time to 220ms.

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c