]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: show used HW stats types
authorJiri Pirko <jiri@mellanox.com>
Tue, 31 Mar 2020 08:50:31 +0000 (10:50 +0200)
committerDavid Ahern <dsahern@gmail.com>
Tue, 31 Mar 2020 23:30:04 +0000 (23:30 +0000)
commit0827cc53f346e70c30300824517e44a57a2170bd
tree6e6eeeff0fdccbaa5aead8c58dd8a766726e9145
parent0141ca64b83c4c5e1b739ef73d159d77bef93405
tc: show used HW stats types

If kernel provides the attribute, show the used HW stats types.

Example:

$ tc filter add dev enp3s0np1 ingress proto ip handle 1 pref 1 flower dst_ip 192.168.1.1 action drop
$ tc -s filter show dev enp3s0np1 ingress
filter protocol ip pref 1 flower chain 0
filter protocol ip pref 1 flower chain 0 handle 0x1
  eth_type ipv4
  dst_ip 192.168.1.1
  in_hw in_hw_count 2
        action order 1: gact action drop
         random type none pass val 0
         index 1 ref 1 bind 1 installed 10 sec used 10 sec
        Action statistics:
        Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
        backlog 0b 0p requeues 0
        used_hw_stats immediate     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/m_action.c