]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Revert false event eliding commits.
authorDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 21:41:40 +0000 (13:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 21:41:40 +0000 (13:41 -0800)
commit29ab798d277793941a05efa6e53329ac325a579b
tree09b0385d34a2d0b302b1f61a2783bfcdc510732f
parent629a1602cb59458feedb54ee5d5c46a1cf1a3047
xfrm: Revert false event eliding commits.

As reported by Alexey Dobriyan:

--------------------
setkey now takes several seconds to run this simple script
and it spits "recv: Resource temporarily unavailable" messages.

#!/usr/sbin/setkey -f
flush;
spdflush;

add A B ipcomp 44 -m tunnel -C deflate;
add B A ipcomp 45 -m tunnel -C deflate;

spdadd A B any -P in ipsec
        ipcomp/tunnel/192.168.1.2-192.168.1.3/use;
spdadd B A any -P out ipsec
        ipcomp/tunnel/192.168.1.3-192.168.1.2/use;
--------------------

Obviously applications want the events even when the table
is empty.  So we cannot make this behavioral change.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c