]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: reduce driver load time
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 22 May 2020 09:09:05 +0000 (12:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 21:12:48 +0000 (14:12 -0700)
commitd4fa7d32f2de464a546f0316b489814f10fc1fe9
tree02649b1e777e259b901925b3373de1e80411015a
parentf37156ca8d138d8a870678bad57bee0d8e438290
net: ena: reduce driver load time

This commit reduces the driver load time by using usec resolution
instead of msec when polling for hardware state change.

Also add back-off mechanism to handle cases where minimal sleep
time is not enough.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c
drivers/net/ethernet/amazon/ena/ena_com.h
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h