drivers/net: use sleep delay by default for Intel NICs
authorIlya Maximets <i.maximets@samsung.com>
Wed, 10 Oct 2018 14:12:20 +0000 (17:12 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commitfd61c749dbb2224d1e988085340c22ab9c985243
treece4ca3a3bb721289084b15ed8141c0cf4c83e65f
parenta51639cc720aa17922d4b479e9961169f3a36c64
drivers/net: use sleep delay by default for Intel NICs

NICs uses different delays up to a second during their
configuration. It makes no sense to busy-wait so long wasting
CPU cycles and preventing any other threads to execute on the
same CPU core. These busy polling are the rudiments that came
from the kernel drivers where you can not sleep in interrupt
context, but as we're in userspace, we're able and should
sleep to allow other threads to run.
Delays never called on rx/tx path, so this should not affect
performance.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/avf/Makefile
drivers/net/avf/base/avf_osdep.h
drivers/net/avf/meson.build
drivers/net/e1000/Makefile
drivers/net/e1000/base/e1000_osdep.h
drivers/net/e1000/meson.build
drivers/net/i40e/base/i40e_osdep.h
drivers/net/ifc/base/ifcvf_osdep.h
drivers/net/ixgbe/base/ixgbe_osdep.h
drivers/net/ixgbe/meson.build