aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/rocker
diff options
context:
space:
mode:
authorNetanel Belgazal <netanel@amazon.com>2018-09-09 08:15:22 +0000
committerDavid S. Miller <davem@davemloft.net>2018-09-09 07:59:55 -0700
commitcfa324a514233b28a6934de619183eee941f02d7 (patch)
treee641227b14798641b55385b957dc528c1179229a /drivers/net/ethernet/rocker
parentnet: ena: fix driver when PAGE_SIZE == 64kB (diff)
downloadlinux-dev-cfa324a514233b28a6934de619183eee941f02d7.tar.xz
linux-dev-cfa324a514233b28a6934de619183eee941f02d7.zip
net: ena: fix device destruction to gracefully free resources
When ena_destroy_device() is called from ena_suspend(), the device is still reachable from the driver. Therefore, the driver can send a command to the device to free all resources. However, in all other cases of calling ena_destroy_device(), the device is potentially in an error state and unreachable from the driver. In these cases the driver must not send commands to the device. The current implementation does not request resource freeing from the device even when possible. We add the graceful parameter to ena_destroy_device() to enable resource freeing when possible, and use it in ena_suspend(). Signed-off-by: Netanel Belgazal <netanel@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker')
0 files changed, 0 insertions, 0 deletions