]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6024b0a4e9794447b5941ca98fbf2d9a8bf9de88
treec3a39816968e33eda8c6a31cb95fbe591c369843
parent12b371af78bc6738082705cffa047174e3720a82
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: ea083d80703d ("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