]> 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)
commit0625c32d1a6d67eebacc3aa16fbcc218949e1297
treed4fae7abad1fe91392e26847f37ea7b892a2d203
parent5d68045c950e6135a36070406e6d8e047dbda12e
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