]> git.ipfire.org Git - thirdparty/iproute2.git/commit
actions: BugFix action stats to display with -s
authorJamal Hadi Salim <jhs@mojatatu.com>
Sun, 21 Sep 2014 16:29:14 +0000 (12:29 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Sep 2014 15:47:19 +0000 (08:47 -0700)
commit954de6c72b242cdef14cd3bcbcdbef78c70f155a
tree30ef74b91238f0e7118343cb071a5f09c3621e9c
parent2f7fbec2eb0ecd0b17ab79d8ba06ace36f5dfc21
actions: BugFix action stats to display with -s

Was broken by commit 288abf513f5d11b98f09c6977d2019097afb7e9f
Lets not be too clever and have a separate call to print flushed
actions info.

Broken looks like:
root@moja-1:~# tc actions add  action drop index 4
root@moja-1:~# tc -s actions ls action gact

    action order 0: gact action drop
     random type none pass val 0
     index 4 ref 1 bind 0 installed 9 sec used 4 sec

The fixed version looks like:
    action order 0: gact action drop
     random type none pass val 0
     index 4 ref 1 bind 0 installed 9 sec used 4 sec
         Sent 108948 bytes 1297 pkts (dropped 1297, overlimits 0)

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/m_action.c