* [dpdk-dev] [Bug 521] i40e: incorrect byte counters
@ 2020-08-07 15:36 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2020-08-07 15:36 UTC (permalink / raw)
Bug ID: 521
Summary: i40e: incorrect byte counters
Target Milestone: ---
After running under 10G traffic over 3 days, the X710 card starts showing
incorrect RX/TX bytes statistics.
The problem seems to happen because of the following code in
/* exclude CRC bytes */
nes->rx_bytes -= (nes->rx_unicast + nes->rx_multicast +
nes->rx_broadcast) * ETHER_CRC_LEN;
The rx_bytes counter in X710 cards is 48-bit long, so it takes around 3 days to
overflow. When it overflows, it becomes less than (rx_pkts * ETHER_CRC_LEN),
and the substruction makes it a negative number, or, to be more precise, a very
big positive number, as it's uint64_t.
For XL710 40G cards, it will take less than one day to face the issue.
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-07 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07 15:36 [dpdk-dev] [Bug 521] i40e: incorrect byte counters bugzilla
DPDK patches and discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
Example config snippet for mirrors.
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git