]> git.droids-corp.org - dpdk.git/commitdiff
net/sfc/base: fix Medford2 FEC stats range
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 3 May 2018 14:41:16 +0000 (15:41 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:49 +0000 (22:31 +0100)
Fixes: 400ba3daeeb1 ("net/sfc/base: decode Medford2 FEC stats if available")
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
drivers/net/sfc/base/ef10_mac.c

index df2c0fb809ee6e2de3f8800f3fb9ce9f2f5258f6..3a62fd09ca2d60394c8a863475e8075bbca232d2 100644 (file)
@@ -526,7 +526,7 @@ ef10_mac_stats_get_mask(
        if (encp->enc_fec_counters) {
                const struct efx_mac_stats_range ef10_fec[] = {
                        { EFX_MAC_FEC_UNCORRECTED_ERRORS,
-                           MC_CMD_MAC_FEC_CORRECTED_SYMBOLS_LANE3 },
+                           EFX_MAC_FEC_CORRECTED_SYMBOLS_LANE3 },
                };
                if ((rc = efx_mac_stats_mask_add_ranges(maskp, mask_size,
                    ef10_fec, EFX_ARRAY_SIZE(ef10_fec))) != 0)