nfp: move devlink port type set after netdev registration
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Mar 2019 10:14:34 +0000 (11:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2019 18:55:31 +0000 (14:55 -0400)
commitfaaccbe6eb07ecd590bebae11eb236661ecfb069
tree1418b6abf2203ef36e8619413da70a93d988e953
parent45b861120e0c2694cabf082c63b022465ac572bb
nfp: move devlink port type set after netdev registration

Similar to other driver, move the port type set after netdev registration
is done. Along with that, clear the type before unregistration.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_devlink.c
drivers/net/ethernet/netronome/nfp/nfp_net_main.c
drivers/net/ethernet/netronome/nfp/nfp_port.h