net/mlx5e: Fix devlink port netdev unregistration sequence
authorParav Pandit <parav@mellanox.com>
Fri, 3 Apr 2020 07:35:46 +0000 (02:35 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 8 Apr 2020 22:46:51 +0000 (15:46 -0700)
commit230a1bc2470c5554a8c2bfe14774863897dc9386
tree39cb9fcc67cf84d761b85f07417cfb8870e7cde5
parent7482d9cb5b974b7ad1a58fa8714f7a8c05b5d278
net/mlx5e: Fix devlink port netdev unregistration sequence

In cited commit netdevice is registered after devlink port.

Unregistration flow should be mirror sequence of registration flow.
Hence, unregister netdevice before devlink port.

Fixes: 31e87b39ba9d ("net/mlx5e: Fix devlink port register sequence")
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c