]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
igbvf: add lock around mailbox ops
authorGreg Edwards <gedwards@ddn.com>
Thu, 20 Jul 2017 16:00:57 +0000 (10:00 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 9 Aug 2017 00:59:03 +0000 (17:59 -0700)
commit32652c2ac2f330d2c159d8259f359da0ee2b0aa3
tree8b41043e18e752a0d20a3ba601a8dcc1e382c2b1
parent48f76b68f9fca4e1d5bbb1755d14e8e8e09bdd5b
igbvf: add lock around mailbox ops

The PF driver assumes the VF will not send another mailbox message until
the PF has written its reply to the previous message.  If the VF does,
that message will be silently dropped by the PF before it writes its
reply to the mailbox.  This results in a VF mailbox timeout for posted
messages waiting for an ACK, and the VF is reset by the
igbvf_watchdog_task in the VM.

Add a lock around the VF mailbox ops to prevent the VF from sending
another message while the PF is still processing the previous one.

Signed-off-by: Greg Edwards <gedwards@ddn.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igbvf/ethtool.c
drivers/net/ethernet/intel/igbvf/mbx.c
drivers/net/ethernet/intel/igbvf/netdev.c
drivers/net/ethernet/intel/igbvf/vf.h