]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: Publish functions for stats formatting
authorPetr Machata <petrm@nvidia.com>
Fri, 22 Apr 2022 08:30:51 +0000 (10:30 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 28 Apr 2022 02:12:42 +0000 (20:12 -0600)
commit5520cf1603bacdc9fdafa119e8bf4a35ad57fefc
tree94874e23ac2277362d7a05c867230548bccb8912
parenta463d6b19107373748f6f930170b4c106bee0c42
ip: Publish functions for stats formatting

Formatting struct rtnl_link_stats64 will be useful outside of iplink.c as
well. Extract from __print_link_stats() a new function, print_stats64(),
make it non-static and publish in the header file.

Additionally, publish the helper size_columns(), which will be useful for
formatting the new struct rtnl_hw_stats64.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ip_common.h
ip/ipaddress.c