From: Jamal Hadi Salim Date: Thu, 26 Apr 2007 07:10:29 +0000 (-0700) Subject: [XFRM]: Export SAD info. X-Git-Tag: v2.6.22-rc1~1128^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d8909bc790d936ce33f4402adf7577533bbd4b;p=pandora-kernel.git [XFRM]: Export SAD info. On a system with a lot of SAs, counting SAD entries chews useful CPU time since you need to dump the whole SAD to user space; i.e something like ip xfrm state ls | grep -i src | wc -l I have seen taking literally minutes on a 40K SAs when the system is swapping. With this patch, some of the SAD info (that was already being tracked) is exposed to user space. i.e you do: ip xfrm state count And you get the count; you can also pass -s to the command line and get the hash info. Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- Reading git-diff-tree failed