]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfp: register devlink port before netdev
authorJiri Pirko <jiri@mellanox.com>
Thu, 28 Mar 2019 12:56:35 +0000 (13:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Mar 2019 19:55:30 +0000 (12:55 -0700)
commit335bc0dde0120b9e46a726309cf6010e39d56c82
treed5acea554ab1bc9d6724853b99e05cc8866b86a9
parentede1fd1851467a107f14faace274479dfe28a36c
nfp: register devlink port before netdev

Change the init/fini flow and register devlink port instance before
netdev. Now it is needed for correct behavior of phys_port_name
generation, but in general it makes sense to register devlink port
first.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c