]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Correct ibmvnic handling of device open/close
authorJohn Allen <jallen@linux.vnet.ibm.com>
Fri, 17 Mar 2017 22:13:43 +0000 (17:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 00:46:14 +0000 (17:46 -0700)
commit389f6e5b3741a67c88da0911a1b5c0e51004eb1e
treeaa389a0f32e2ddbba81715c23b60354f3b7b9d85
parentc0088aae3bc893029732b6085bfb51a5b1bf7524
ibmvnic: Correct ibmvnic handling of device open/close

When closing the ibmvnic device we need to release the resources used
in communicating to the virtual I/O server. These need to be
re-negotiated with the server at open time.

This patch moves the releasing of resources a separate routine
and updates the open and close handlers to release all resources at
close and re-negotiate and allocate these resources at open.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h