]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: speedup ip link
authorEric Dumazet <edumazet@google.com>
Sat, 9 Jun 2012 11:55:55 +0000 (13:55 +0200)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 11 Jun 2012 21:55:23 +0000 (14:55 -0700)
commit62e2e540919d31147165dabd35431c0649122c96
treedde34cc84ebafab91d5a3ffce4bfebab3cf2e556
parente1b59459da97f26e80e3fa6ab0e15ea2dc447b88
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>
ip/ipaddress.c