From: Jamal Hadi Salim Date: Tue, 10 Jun 2008 21:25:34 +0000 (-0700) Subject: ipsec: pfkey should ignore events when no listeners X-Git-Tag: v2.6.26-rc6~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c6f60e72f112b57ddb07abb2e5f771ee211f43;p=pandora-kernel.git ipsec: pfkey should ignore events when no listeners When pfkey has no km listeners, it still does a lot of work before finding out there aint nobody out there. If a tree falls in a forest and no one is around to hear it, does it make a sound? In this case it makes a lot of noise: With this short-circuit adding 10s of thousands of SAs using netlink improves performance by ~10%. Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- Reading git-diff-tree failed