]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2d4a991d413c77e18da147566558173d1f57902
treed4fae7abad1fe91392e26847f37ea7b892a2d203
parent2a772433ce66f2985488a58da0569c098f07d4f3
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