nfp: fix ethtool stats gather retry
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 10 Oct 2017 16:16:22 +0000 (09:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Oct 2017 20:18:33 +0000 (13:18 -0700)
commitc3d64ad4fea66d07e878b248b803ccd12c45e18c
treec3a39816968e33eda8c6a31cb95fbe591c369843
parent3668bb8da197f90c2e9cb71e89da6fa629ff8450
nfp: fix ethtool stats gather retry

The while loop fetching 64 bit ethtool statistics may have
to retry multiple times, it shouldn't modify the outside state.

Fixes: 4c3523623dc0 ("net: add driver for Netronome NFP4000/NFP6000 NIC VFs")
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