]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFRM] Optimize policy dumping
authorJamal Hadi Salim <hadi@cyberus.ca>
Tue, 5 Dec 2006 04:02:37 +0000 (20:02 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Dec 2006 02:38:44 +0000 (18:38 -0800)
commitbaf5d743d1b8783fdbd5c1260ada2926e5bbaaee
tree1dba3ae8d7e40a9b4f6ccb886d1cb511396e5381
parent1b6651f1bf2453d593478aa88af267f057fd73e2
[XFRM] Optimize policy dumping

This change optimizes the dumping of Security policies.

1) Before this change ..
speedopolis:~# time ./ip xf pol

real    0m22.274s
user    0m0.000s
sys     0m22.269s

2) Turn off sub-policies

speedopolis:~# ./ip xf pol

real    0m13.496s
user    0m0.000s
sys     0m13.493s

i suppose the above is to be expected

3) With this change ..
speedopolis:~# time ./ip x policy

real    0m7.901s
user    0m0.008s
sys     0m7.896s
net/xfrm/xfrm_policy.c