]> 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)
commit571b83c0185269d4d8e46c0c6fbe99f6dca8bfa6
tree8b41043e18e752a0d20a3ba601a8dcc1e382c2b1
parentba49dc0a0e7f0428bfefd6098cfb984cb6583826
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