Jamal Hadi Salim 28d8909bc7 [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 <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-26 00:10:29 -07:00
..
2007-02-26 11:42:43 -08:00
2007-02-08 13:51:54 -08:00
2006-12-02 21:21:08 -08:00
2006-12-02 21:22:55 -08:00
2005-08-29 15:32:25 -07:00
2005-04-16 15:20:36 -07:00
2006-09-28 18:01:06 -07:00
2005-04-16 15:20:36 -07:00
2006-12-02 21:23:41 -08:00
2007-04-25 22:29:51 -07:00
2007-04-25 22:29:52 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 07:57:21 -03:00
2006-03-20 22:59:36 -08:00
2006-12-02 21:22:52 -08:00
2007-04-25 22:28:05 -07:00
2005-08-29 16:01:32 -07:00
2005-08-29 15:32:25 -07:00
2007-04-25 22:27:17 -07:00
2007-04-25 22:27:56 -07:00
2007-04-25 22:29:45 -07:00
2007-04-26 00:10:29 -07:00