diff options
author | 2018-07-23 23:36:04 +0900 | |
---|---|---|
committer | 2018-07-25 12:58:25 -0700 | |
commit | ecbc42ca5d665e9238a4cdb595024d2e6cf87f2d (patch) | |
tree | af0f25dffd1f64acc88cf1cb65321a60458b0672 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'mips_fixes_4.18_4' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux (diff) | |
download | wireguard-linux-ecbc42ca5d665e9238a4cdb595024d2e6cf87f2d.tar.xz wireguard-linux-ecbc42ca5d665e9238a4cdb595024d2e6cf87f2d.zip |
virtio_net: Fix incosistent received bytes counter
When received packets are dropped in virtio_net driver, received packets
counter is incremented but bytes counter is not.
As a result, for instance if we drop all packets by XDP, only received
is counted and bytes stays 0, which looks inconsistent.
IMHO received packets/bytes should be counted if packets are produced by
the hypervisor, like what common NICs on physical machines are doing.
So fix the bytes counter.
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions