nfp: refresh port state before reporting autonegotiation
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 22 May 2017 17:59:34 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:59:06 +0000 (14:59 -0400)
commit1876749da87500c7228f91398e04291389a18634
tree93b886c2f25aa4b3e8fb6d9878bd1658ceafecf3
parent46b250311dac828bcb79f0807c16d4157059ce7e
nfp: refresh port state before reporting autonegotiation

State of autonegotiation may have changed but is not yet refreshed.
Make sure ethtool respects the NFP_PORT_CHANGED flag when looking
at autoneg.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
drivers/net/ethernet/netronome/nfp/nfp_port.c
drivers/net/ethernet/netronome/nfp/nfp_port.h