net/ncsi: Improve HNCDSC AEN handler
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 20 Oct 2016 00:45:52 +0000 (11:45 +1100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2016 15:23:08 +0000 (11:23 -0400)
commit22d8aa93d7ea169a349fb2f9dee5babc68f6a683
treee27ab3bc1a06c24831946d1319a64d292f55f7d5
parentbbc7c01e95ceef4e23e343f8cbb6edca887121a5
net/ncsi: Improve HNCDSC AEN handler

This improves AEN handler for Host Network Controller Driver Status
Change (HNCDSC):

   * The channel's lock should be hold when accessing its state.
   * Do failover when host driver isn't ready.
   * Configure channel when host driver becomes ready.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ncsi/ncsi-aen.c