net/e1000/base: retry to get HW mailbox lock
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 23 Nov 2016 17:22:47 +0000 (12:22 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:36:48 +0000 (19:36 +0100)
commitbc043fb7c9fe4ffef14f6d910e6fd43c303e351c
tree8aba003a7fc10198a839177c9d4bc2e3d4a28e85
parent8cce758d693a414a8a783a32c754d01a904f5930
net/e1000/base: retry to get HW mailbox lock

The driver shouldn't give up if it fails to get the hardware mailbox lock.

This can happen in a situation where the PF-VF communication channel is
heavily loaded and causes complete communications failure between the PF
and VF drivers.

Add a counter and a delay. The driver will now retry ten times,
waiting one millisecond between retries.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/base/e1000_mbx.c