]> git.baikalelectronics.ru Git - kernel.git/commit
net/ncsi: Introduce ncsi_stop_dev()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 4 Oct 2016 00:25:53 +0000 (11:25 +1100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Oct 2016 06:11:51 +0000 (02:11 -0400)
commitefbaf492a5a17c79f4a4170b61bb934b99ee225a
tree7ea119581cb360706fa46c69678dcff8ded7b8dc
parent2db8623d3cf0d8a7025a8961d7b6e62cdbf5f315
net/ncsi: Introduce ncsi_stop_dev()

This introduces ncsi_stop_dev(), as counterpart to ncsi_start_dev(),
to stop the NCSI device so that it can be reenabled in future. This
API should be called when the network device driver is going to
shutdown the device. There are 3 things done in the function: Stop
the channel monitoring; Reset channels to inactive state; Report
NCSI link down.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ncsi.h
net/ncsi/ncsi-manage.c