summary refs log tree commit diff stats
path: root/python/scripts
diff options
context:
space:
mode:
authortimothee.cocault@gmail.com <timothee.cocault@gmail.com>2023-04-10 17:27:48 +0200
committerJason Wang <jasowang@redhat.com>2023-05-23 15:20:15 +0800
commit8d689f6aae8be096b4a1859be07c1b083865f755 (patch)
treeb1eee1ce80c71d1883ab43680684dcb03d674f30 /python/scripts
parent886c0453cbf10eebd42a9ccf89c3e46eb389c357 (diff)
downloadfocaccia-qemu-8d689f6aae8be096b4a1859be07c1b083865f755.tar.gz
focaccia-qemu-8d689f6aae8be096b4a1859be07c1b083865f755.zip
e1000e: Fix tx/rx counters
The bytes and packets counter registers are cleared on read.

Copying the "total counter" registers to the "good counter" registers has
side effects.
If the "total" register is never read by the OS, it only gets incremented.
This leads to exponential growth of the "good" register.

This commit increments the counters individually to avoid this.

Signed-off-by: Timothée Cocault <timothee.cocault@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'python/scripts')
0 files changed, 0 insertions, 0 deletions