]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: change order of devlink port register and netdev register
authorJiri Pirko <jiri@nvidia.com>
Mon, 26 Sep 2022 11:09:38 +0000 (13:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Sep 2022 14:54:45 +0000 (07:54 -0700)
commit1fd7c08286cec1805427ed0569ca08e24ade6702
treed8ecaca61fcb7c081c348c6f7e100f9e24f20d80
parenta286ba73871411b8615eb52e9de1dd8c5078ed3d
ionic: change order of devlink port register and netdev register

Make sure that devlink port is registered first and register netdev
after. Unregister netdev before devlnk port unregister.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c