Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2018 10:26:59 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r342519 - stable/10/sys/dev/sfxge/common
Message-ID:  <201812261026.wBQAQxxG029822@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Wed Dec 26 10:26:58 2018
New Revision: 342519
URL: https://svnweb.freebsd.org/changeset/base/342519

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/10/sys/dev/sfxge/common/ef10_mac.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/ef10_mac.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_mac.c	Wed Dec 26 10:26:24 2018	(r342518)
+++ stable/10/sys/dev/sfxge/common/ef10_mac.c	Wed Dec 26 10:26:58 2018	(r342519)
@@ -611,7 +611,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812261026.wBQAQxxG029822>