ibmvnic: Only do H_EOI for mobility events
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 22 May 2018 16:21:10 +0000 (11:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 18:54:11 +0000 (14:54 -0400)
commit73f9d36440a3bbaa034013e17d2032a905552ab2
tree6631389a56e93c7b4e1e44a64be70a8a776da4e1
parentab1f1786baa32bbe8eaa9d1463395a6da1bd7795
ibmvnic: Only do H_EOI for mobility events

When enabling the sub-CRQ IRQ a previous update sent a H_EOI prior
to the enablement to clear any pending interrupts that may be present
across a partition migration. This fixed a firmware bug where a
migration could erroneously indicate that a H_EOI was pending.

The H_EOI should only be sent when enabling during a mobility
event though. Doing so at other time could wrong and can produce
extra driver output when IRQs are enabled when doing TX completion.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c