summaryrefslogtreecommitdiffstats
path: root/kernel/jump_label.c
diff options
context:
space:
mode:
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>2018-07-23 23:36:04 +0900
committerDavid S. Miller <davem@davemloft.net>2018-07-25 12:53:37 -0700
commit7d9d60fd4ab69604015b094c07ad8490039bb2a4 (patch)
tree88e94fe8573e9ae54e2e366474d225bbed903bd4 /kernel/jump_label.c
parent19725496da5602b401eae389736ab00d1817e264 (diff)
downloadtalos-op-linux-7d9d60fd4ab69604015b094c07ad8490039bb2a4.tar.gz
talos-op-linux-7d9d60fd4ab69604015b094c07ad8490039bb2a4.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 'kernel/jump_label.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud