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)
commit069c474e88bb7753183f1eadbd7786c27888c8e3
tree09b0385d34a2d0b302b1f61a2783bfcdc510732f
parent08326dbe7b5825295ec3711eec53b093549749e5
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