diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2013-03-28 15:17:47 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2013-03-28 15:17:47 -0700 |
commit | f0124b0f0aa0e5b9288114eb8e6ff9b4f8c33ec8 (patch) | |
tree | 68663bd64947e432d1d0dff83c5d39c1640a6fc1 /ip/iproute.c | |
parent | 0025e5d63d5d1598ab622867834a3bcb9f518f9f (diff) | |
download | platform_external_iproute2-f0124b0f0aa0e5b9288114eb8e6ff9b4f8c33ec8.tar.gz platform_external_iproute2-f0124b0f0aa0e5b9288114eb8e6ff9b4f8c33ec8.tar.bz2 platform_external_iproute2-f0124b0f0aa0e5b9288114eb8e6ff9b4f8c33ec8.zip |
ip: remove unnecessary ll_init_map
Don't call ll_init_map on modify operations
Saves significant overhead with 1000's of devices.
Diffstat (limited to 'ip/iproute.c')
-rw-r--r-- | ip/iproute.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ip/iproute.c b/ip/iproute.c index 2c2a3319..adef7740 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -970,8 +970,6 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv) if (d || nhs_ok) { int idx; - ll_init_map(&rth); - if (d) { if ((idx = ll_name_to_index(d)) == 0) { fprintf(stderr, "Cannot find device \"%s\"\n", d); @@ -1265,8 +1263,6 @@ static int iproute_list_flush_or_save(int argc, char **argv, int action) if (do_ipv6 == AF_UNSPEC && filter.tb) do_ipv6 = AF_INET; - ll_init_map(&rth); - if (id || od) { int idx; @@ -1452,8 +1448,6 @@ static int iproute_get(int argc, char **argv) exit(1); } - ll_init_map(&rth); - if (idev || odev) { int idx; |