]> 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)
commit9f33622af691a7946037540a6e96c5c692d876a1
treeaa389a0f32e2ddbba81715c23b60354f3b7b9d85
parentee6041e42ccaa340f25b79c92be73a408c75c35d
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