commit | 4195e54aaf1c8d465666333f47662088c9e63672 | [log] [tgz] |
---|---|---|
author | Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> | Thu Oct 11 18:36:49 2018 +0900 |
committer | David S. Miller <davem@davemloft.net> | Mon Oct 15 21:58:46 2018 -0700 |
tree | 2d1ca1fa27d2f3cd5ebb85f245f61038ff3e1f19 | |
parent | 2131479df66d320e327341ccf0be97924f108327 [diff] |
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>