svn commit: r342340 - stable/12/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Fri Dec 21 16:29:32 UTC 2018
Author: arybchik
Date: Fri Dec 21 16:29:31 2018
New Revision: 342340
URL: https://svnweb.freebsd.org/changeset/base/342340
Log:
MFC r341309
sfxge(4): fix MAC Tx stats for less or equal to 64 bytes
This statistic should include 64byte and smaller frames.
Fix EF10 calculation to match Siena code.
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18271
Modified:
stable/12/sys/dev/sfxge/common/ef10_mac.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/sfxge/common/ef10_mac.c
==============================================================================
--- stable/12/sys/dev/sfxge/common/ef10_mac.c Fri Dec 21 16:28:22 2018 (r342339)
+++ stable/12/sys/dev/sfxge/common/ef10_mac.c Fri Dec 21 16:29:31 2018 (r342340)
@@ -615,7 +615,7 @@ ef10_mac_stats_update(
EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_LT64_PKTS, &value);
EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value);
EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_64_PKTS, &value);
- EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value);
+ EFSYS_STAT_INCR_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value);
EF10_MAC_STAT_READ(esmp, MC_CMD_MAC_TX_65_TO_127_PKTS, &value);
EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_65_TO_127_PKTS]), &value);
More information about the svn-src-all
mailing list