]> git.proxmox.com Git - mirror_iproute2.git/commit
tc_util: Add support for showing TCA_STATS_BASIC_HW statistics
authorEelco Chaudron <echaudro@redhat.com>
Tue, 2 Oct 2018 07:27:18 +0000 (03:27 -0400)
committerDavid Ahern <dsahern@gmail.com>
Tue, 2 Oct 2018 21:45:33 +0000 (14:45 -0700)
commit5ac138324e31c75edc65c69cedcf699fb624c113
treecb3c2dbac1b5d051e6cf4e61941d5c9b02f8b4c4
parent56155d4df86d489c4207444c8a90ce4e0e22e49f
tc_util: Add support for showing TCA_STATS_BASIC_HW statistics

Add support for showing hardware specific counters to easy
troubleshooting hardware offload.

$ tc -s filter show dev enp3s0np0 parent ffff:
filter protocol ip pref 1 flower chain 0
filter protocol ip pref 1 flower chain 0 handle 0x1
  eth_type ipv4
  dst_ip 2.0.0.0
  src_ip 1.0.0.0
  ip_flags nofrag
  in_hw
        action order 1: mirred (Egress Redirect to device eth1) stolen
        index 1 ref 1 bind 1 installed 0 sec used 0 sec
        Action statistics:
        Sent 534884742 bytes 8915697 pkt (dropped 0, overlimits 0 requeues 0)
        Sent software 187542 bytes 4077 pkt
        Sent hardware 534697200 bytes 8911620 pkt
        backlog 0b 0p requeues 0
        cookie 89173e6a44447001becfd486bda17e29

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/tc_util.c