git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ea95e
)
net/sfc/base: fix MAC Tx stats for less or equal to 64 bytes
author
Andy Moreton
<amoreton@solarflare.com>
Mon, 10 Sep 2018 09:33:35 +0000
(10:33 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:02 +0000
(
01:41
+0200)
This statistic should include 64byte and smaller frames.
Fix EF10 calculation to match Siena code.
Fixes:
8c7c723dfe7c
("net/sfc/base: import MAC statistics")
Cc: stable@dpdk.org
Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/base/ef10_mac.c
b/drivers/net/sfc/base/ef10_mac.c
index
a4a6d9e
..
ab73828
100644
(file)
--- a/
drivers/net/sfc/base/ef10_mac.c
+++ b/
drivers/net/sfc/base/ef10_mac.c
@@
-650,7
+650,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);