diff options
| author | Majd Dibbiny <[email protected]> | 2015-09-25 07:49:14 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-09-29 05:19:50 +0000 |
| commit | a31208b1e11df334d443ec8cace7636150bb8ce2 (patch) | |
| tree | b9f80bf6f7af8beacb37ca2ed3944d1604ec9d9f /net/switchdev/switchdev.c | |
| parent | net/mlx5_core: Fix notification of page supplement error (diff) | |
| download | kernel-a31208b1e11df334d443ec8cace7636150bb8ce2.tar.gz kernel-a31208b1e11df334d443ec8cace7636150bb8ce2.zip | |
net/mlx5_core: New init and exit flow for mlx5_core
In the new flow, we separate the pci initialization and teardown from the
initialization and teardown of the other resources.
init_one calls mlx5_pci_init that handles the pci resources initialization.
It then calls mlx5_load_one to initialize the remainder of the resources.
When removing a device, remove_one is invoked. However, now remove_one
calls mlx5_unload_one to free all the resources except the pci resources.
When mlx5_unload_one returns, mlx5_pci_close is called to free the pci
resources.
The above separation will allow us to implement the pci error handlers and
suspend and resume callbacks.
Signed-off-by: Majd Dibbiny <[email protected]>
Signed-off-by: Eli Cohen <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
