]> git.baikalelectronics.ru Git - 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)
commit1a9c65bde64e35bbeae5656e1b51303a834a0867
tree8b41043e18e752a0d20a3ba601a8dcc1e382c2b1
parentf035ee2e6078f40abb4738744707342bbb9d8b56
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