From: Ben Hutchings Date: Fri, 17 Jan 2014 19:48:17 +0000 (+0000) Subject: sfc: Fix transposed ptp_{under, over}size_sync_windows statistics X-Git-Tag: v4.14-rc1~8188^2~68^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13c92e82e821d87e388a73ffeddeb62d753dab96;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Shradha Shah Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index 7aa0708..eb75fbd 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), if (window < SYNCHRONISATION_GRANULARITY_NS) { ++ptp->invalid_sync_windows; } else if (corrected >= MAX_SYNCHRONISATION_NS) { - ++ptp->undersize_sync_windows; - } else if (corrected < ptp->min_synchronisation_ns) { ++ptp->oversize_sync_windows; + } else if (corrected < ptp->min_synchronisation_ns) { + ++ptp->undersize_sync_windows; } else { ngood++; last_good = i;