]> 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)
commit82695757f239a6b61ca04b471608310f6b3d9a63
treee27ab3bc1a06c24831946d1319a64d292f55f7d5
parent1747677d20dffe630425919fd6d9ef78e95e4e1b
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