igb/igbvf: don't give up
authorMitch Williams <mitch.a.williams@intel.com>
Sat, 12 Dec 2015 00:45:38 +0000 (16:45 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Feb 2016 00:17:57 +0000 (16:17 -0800)
commit9ce0e8d72678b5b60c99ce4c7af15ec127c761cb
tree93e81db74fb3c541bf6a003fe8df0d9fb6b515d7
parent37a5d163fb447b39f7960d0534de30e88ad395bb
igb/igbvf: don't give up

The driver shouldn't just 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: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_mbx.c
drivers/net/ethernet/intel/igbvf/mbx.c