commit | 62e2e540919d31147165dabd35431c0649122c96 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sat Jun 09 13:55:55 2012 +0200 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Mon Jun 11 14:55:23 2012 -0700 |
tree | dde34cc84ebafab91d5a3ffce4bfebab3cf2e556 | |
parent | e1b59459da97f26e80e3fa6ab0e15ea2dc447b88 [diff] |
ip: speedup ip link ip link has quadratic behavior because store_nlmsg() has a head list pointer and search the end of list. Provides a head/tail to cut time. Time with 128000 net devices, to do "ip link show dev xxx" Before: 2m3.594s After: 0m2.830s Signed-off-by: Eric Dumazet <edumazet@google.com>