]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Reorganize device close
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 7 Mar 2018 23:51:46 +0000 (17:51 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 17:51:45 +0000 (12:51 -0500)
commit8ab70f4f010923f357978e70ed183b5062be745f
tree96aca6c1c4916a443ef16a065370a571b787b58d
parent1b80e65fd731489fadd4a7095461c5252ef22ad5
ibmvnic: Reorganize device close

Introduce a function to halt network operations and clean up any
unused or outstanding socket buffers. Then, during device close,
disable backing adapter before halting all queues and performing
cleanup. This ensures all backing device operations will be
stopped before the driver cleans up shared resources.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c