]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Set interface flags before cleanup in unload_one
authorIlan Tayari <ilant@mellanox.com>
Thu, 25 May 2017 05:42:07 +0000 (08:42 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 27 Jun 2017 13:36:47 +0000 (16:36 +0300)
commit67e765ea94a634532af9e0746604f4e559009674
tree13178d1aae7778082a6af768bab7cdaca3366f03
parenta9e02e40cfc6cd0771dd20133f568cbdc9a08ed9
net/mlx5: Set interface flags before cleanup in unload_one

In load_one, the interface flags are changed from down to up,
only after initializing the interfaces.
In unload_one, the flags are changed from up to down before the
interface cleanup.

Change the cleanup order to be opposite to initialization order.

This fixes flag consistency between init and cleanup.

Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c