diff options
author | Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> | 2018-10-11 18:36:50 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-15 21:58:46 -0700 |
commit | d397b9682c1c808344dd93b43de8750fa4d9f581 (patch) | |
tree | 4a7739eb711b13d69f05886d149c29ca91081b22 /drivers/net/phy/phy.c | |
parent | 4195e54aaf1c8d465666333f47662088c9e63672 (diff) | |
download | kernel_replicant_linux-d397b9682c1c808344dd93b43de8750fa4d9f581.tar.gz kernel_replicant_linux-d397b9682c1c808344dd93b43de8750fa4d9f581.tar.bz2 kernel_replicant_linux-d397b9682c1c808344dd93b43de8750fa4d9f581.zip |
veth: Add ethtool statistics support for XDP
Expose per-queue stats for ethtool -S.
As there are only rx queues, and rx queues are used only when XDP is
used, per-queue counters are only rx XDP ones.
Example:
$ ethtool -S veth0
NIC statistics:
peer_ifindex: 11
rx_queue_0_xdp_packets: 28601434
rx_queue_0_xdp_bytes: 1716086040
rx_queue_0_xdp_drops: 28601434
rx_queue_1_xdp_packets: 17873050
rx_queue_1_xdp_bytes: 1072383000
rx_queue_1_xdp_drops: 17873050
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions