]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ifstat: Add extended statistics to ifstat
authorNogah Frankel <nogahf@mellanox.com>
Thu, 26 Jan 2017 12:44:39 +0000 (14:44 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 3 Feb 2017 17:20:15 +0000 (09:20 -0800)
commit5a52102b7c8fb5ccf6dbdacb486f153faba4bac6
tree1b3ac2f71a2663f21540bbd268b61062c090cccc
parent3d8048dcc326b5ae62a7be7b034b7e262a9c92fb
ifstat: Add extended statistics to ifstat

Extended stats are part of the RTM_GETSTATS method. This patch adds them
to ifstat.
While extended stats can come in many forms, we support only the
rtnl_link_stats64 struct for them (which is the 64 bits version of struct
rtnl_link_stats).
We support stats in the main nesting level, or one lower.
The extension can be called by its name or any shorten of it. If there is
more than one matched, the first one will be picked.

To get the extended stats the flag -x <stats type> is used.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
misc/ifstat.c