Home
last modified time | relevance | path

Searched hist:"8 d689f6aae8be096b4a1859be07c1b083865f755" (Results 1 – 4 of 4) sorted by relevance

/qemu/hw/net/
H A De1000x_common.c8d689f6aae8be096b4a1859be07c1b083865f755 Mon Apr 10 15:27:48 UTC 2023 timothee.cocault@gmail.com <timothee.cocault@gmail.com> 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>
H A Digb_core.c8d689f6aae8be096b4a1859be07c1b083865f755 Mon Apr 10 15:27:48 UTC 2023 timothee.cocault@gmail.com <timothee.cocault@gmail.com> 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>
H A De1000e_core.c8d689f6aae8be096b4a1859be07c1b083865f755 Mon Apr 10 15:27:48 UTC 2023 timothee.cocault@gmail.com <timothee.cocault@gmail.com> 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>
H A De1000.c8d689f6aae8be096b4a1859be07c1b083865f755 Mon Apr 10 15:27:48 UTC 2023 timothee.cocault@gmail.com <timothee.cocault@gmail.com> 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>