]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Flushing empty SPD generates false events
authorJamal Hadi Salim <hadi@cyberus.ca>
Fri, 19 Feb 2010 02:00:42 +0000 (02:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2010 21:11:50 +0000 (13:11 -0800)
commit0e90553e599ddd3ac8a42e9cdc224d8eb23c4ff9
tree3c838f5801d0842c586519ddd4d991e22ac3ecd0
parent46c6b8b3014a5f6bed0e5915a8fdf39d83fdd7c2
xfrm: Flushing empty SPD generates false events

To see the effect make sure you have an empty SPD.
On window1 "ip xfrm mon" and on window2 issue "ip xfrm policy flush"
You get prompt back in window2 and you see the flush event on window1.
With this fix, you still get prompt on window1 but no event on window2.

Thanks to Alexey Dobriyan for finding a bug in earlier version
when using pfkey to do the flushing.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_user.c