diff options
| author | Mohamad Haj Yahia <mohamad@mellanox.com> | 2016-09-09 17:35:20 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-09-10 21:21:49 -0700 |
| commit | 59211bd3b6329c3e5f4a90ac3d7f87ffa7867073 (patch) | |
| tree | 782750f06a1da5eb35fff85d15f0d6c232f1894b /lib/mpi/mpiutil.c | |
| parent | 737a234bb6384800a5b632be85c6b0ad6221d137 (diff) | |
net/mlx5: Split the load/unload flow into hardware and software flows
Gather all software context creating/destroying in one function and call
it once in the first load and in the last unload.
load/unload functions will now receive indication if we need to
create/destroy the software contexts.
In internal/pci error do the unload/load flows without releasing the
software objects.
In this way we perserve the sw core state and it help us restoring old
driver state after PCI error/shutdown.
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
