diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2014-01-17 14:48:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-21 17:46:12 -0500 |
commit | 13c92e82e821d87e388a73ffeddeb62d753dab96 (patch) | |
tree | d6402b968a3e49b5bc06213153efa2c66ddd5a26 | |
parent | 3e336261f88c3fb7a9789b1e3d0259eb0c8036fd (diff) |
sfc: Fix transposed ptp_{under, over}size_sync_windows statistics
Somehow I transposed these two while bringing the original statistics
support upstream.
Fixes: 99691c4ac112 ('sfc: Add PTP counters to ethtool stats')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/sfc/ptp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index 7aa070813960..eb75fbd11a01 100644 --- a/drivers/net/ethernet/sfc/ptp.c +++ b/drivers/net/ethernet/sfc/ptp.c | |||
@@ -753,9 +753,9 @@ efx_ptp_process_times(struct efx_nic *efx, MCDI_DECLARE_STRUCT_PTR(synch_buf), | |||
753 | if (window < SYNCHRONISATION_GRANULARITY_NS) { | 753 | if (window < SYNCHRONISATION_GRANULARITY_NS) { |
754 | ++ptp->invalid_sync_windows; | 754 | ++ptp->invalid_sync_windows; |
755 | } else if (corrected >= MAX_SYNCHRONISATION_NS) { | 755 | } else if (corrected >= MAX_SYNCHRONISATION_NS) { |
756 | ++ptp->undersize_sync_windows; | ||
757 | } else if (corrected < ptp->min_synchronisation_ns) { | ||
758 | ++ptp->oversize_sync_windows; | 756 | ++ptp->oversize_sync_windows; |
757 | } else if (corrected < ptp->min_synchronisation_ns) { | ||
758 | ++ptp->undersize_sync_windows; | ||
759 | } else { | 759 | } else { |
760 | ngood++; | 760 | ngood++; |
761 | last_good = i; | 761 | last_good = i; |