]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.c
utils: move parse_percent() to tc_util
authorAndrea Claudi <aclaudi@redhat.com>
Fri, 28 Jun 2019 16:03:45 +0000 (18:03 +0200)
committerDavid Ahern <dsahern@gmail.com>
Fri, 28 Jun 2019 23:06:26 +0000 (16:06 -0700)
commit1e5746d5e13d895b63da954f0290cffbb076cefa
tree9344174c25c30be45c3fc6e3c1bb12d4c23b77d9
parent1df17579d8ecbbd082b3795c29f75e73528e7004
utils: move parse_percent() to tc_util

As parse_percent() is used only in tc.

This reduces ip, bridge and genl binaries size:

$ bloat-o-meter -t bridge/bridge bridge/bridge.new
add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-109 (-109)
Total: Before=50973, After=50864, chg -0.21%

$ bloat-o-meter -t genl/genl genl/genl.new
add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-109 (-109)
Total: Before=30298, After=30189, chg -0.36%

$ bloat-o-meter ip/ip ip/ip.new
add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-109 (-109)
Total: Before=674164, After=674055, chg -0.02%

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
include/utils.h
lib/utils.c
tc/tc_util.c
tc/tc_util.h