linux/drivers/net/ethernet/ibm
Thomas Falcon 249168ad07 ibmvnic: Make CRQ interrupt tasklet wait for all capabilities crqs
After sending device capability queries and requests to the vNIC Server,
an interrupt is triggered and the responses are written to the driver's
CRQ response buffer. Since the interrupt can be triggered before all
responses are written and visible to the partition, there is a danger
that the interrupt handler or tasklet can terminate before all responses
are read, resulting in a failure to initialize the device.

To avoid this scenario, when capability commands are sent, we set
a flag that will be checked in the following interrupt tasklet that
will handle the capability responses from the server. Once all
responses have been handled, the flag is disabled; and the tasklet
is allowed to terminate.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-19 18:12:03 -05:00
..
ehea net: ibm: ehea: use new api ethtool_{get|set}_link_ksettings 2017-01-09 12:09:09 -05:00
emac ibm/emac: use napi_complete_done() 2017-02-05 16:11:57 -05:00
ibmveth.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
ibmveth.h ibmveth: set correct gso_size and gso_type 2016-12-09 22:47:22 -05:00
ibmvnic.c ibmvnic: Make CRQ interrupt tasklet wait for all capabilities crqs 2017-02-19 18:12:03 -05:00
ibmvnic.h ibmvnic: Make CRQ interrupt tasklet wait for all capabilities crqs 2017-02-19 18:12:03 -05:00
Kconfig Driver for IBM System i/p VNIC protocol 2015-12-28 00:12:13 -05:00
Makefile Driver for IBM System i/p VNIC protocol 2015-12-28 00:12:13 -05:00