]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cb886ba8ac2be793fba2bb9b5753eb297d793e3
tree39cb9fcc67cf84d761b85f07417cfb8870e7cde5
parent04a88f7b27a4da93f7bae01a85cbc1b626d10202
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: c661baa096a7 ("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