nfp: flower: obtain repr link state only from firmware
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Wed, 3 Jan 2018 03:18:59 +0000 (19:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 17:17:30 +0000 (12:17 -0500)
commitc6d20ab4d7c8d423a314944f74a5ba8698a82f86
treef3781314450cc395b5e4a620bfb2a33f972cc4ed
parentee7e16b66a766e8f922aafe5edf9353b9f37a424
nfp: flower: obtain repr link state only from firmware

Instead of starting up reprs assuming that there is link, only respond
to the link state reported by firmware.

Furthermore, ensure link is down after repr netdevs are created.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/main.c
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c