]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bc9bd3baba74d2abfc5d809129a1c9c7be6d265
treee27ab3bc1a06c24831946d1319a64d292f55f7d5
parent4367e9837908fc57b4523d7125246a087e270860
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