]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: ensure we process SM mbx when processing VF mbx
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 2 Oct 2017 14:17:50 +0000 (07:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 14:24:48 +0000 (07:24 -0700)
commit33fb09b4aeed2c5d9c187a2a81cbcb26c6e373f5
treeb63debc5fe939440405297157dfb1a79a17f4509
parent6fbe7700d0859a0669145caa64c959155545ecab
fm10k: ensure we process SM mbx when processing VF mbx

When we process VF mailboxes, the driver is likely going to also queue
up messages to the switch manager. This process merely queues up the
FIFO, but doesn't actually begin the transmission process. Because we
hold the mailbox lock during this VF processing, the PF<->SM mailbox is
not getting processed at this time. Ensure that we actually process the
PF<->SM mailbox in between each PF<->VF mailbox.

This should ensure prompt transmission of the messages queued up after
each VF message is received and handled.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_iov.c