]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
igb/igbvf: don't give up
authorMitch Williams <mitch.a.williams@intel.com>
Sat, 12 Dec 2015 00:45:38 +0000 (16:45 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:20:10 +0000 (10:20 +0100)
commitdb985fafdf95ba4dd609f6181da7f5eeace41d3d
tree12fe3fc841dfad129324e2a51f1dd157bbf78b4b
parente7e4d6dff7153acc1ff15e5e74aea605f5614885
igb/igbvf: don't give up

BugLink: http://bugs.launchpad.net/bugs/1547674
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>
(cherry picked from net-next commit 9ce0e8d72678b5b60c99ce4c7af15ec127c761cb)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/igb/e1000_mbx.c
drivers/net/ethernet/intel/igbvf/mbx.c