]> git.baikalelectronics.ru Git - kernel.git/commit
veth: Account for XDP packet statistics on rx side
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Thu, 11 Oct 2018 09:36:49 +0000 (18:36 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 04:58:46 +0000 (21:58 -0700)
commit4c5b927f3d5ad33a2340cc22f149aa96c4d6d490
tree2d1ca1fa27d2f3cd5ebb85f245f61038ff3e1f19
parent0f8818e85d7a123eab8acc96a49e3e8491d10c8d
veth: Account for XDP packet statistics on rx side

On XDP path veth has napi handler so we can collect statistics on
per-queue basis for XDP.

By this change now we can collect XDP_DROP drop count as well as packets
and bytes coming through ndo_xdp_xmit. Packet counters shown by
"ip -s link", sysfs stats or /proc/net/dev is now correct for XDP.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c