]> err.no Git - linux-2.6/commit
[IPSEC]: Move integrity stat collection into xfrm_input
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Dec 2007 23:55:02 +0000 (15:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:51 +0000 (14:53 -0800)
commit668dc8af3150f837f7f0461001bbbc0ce25d7bdf
tree9ba3534a190bb69b3aebf24aaa4340685fe16539
parentb2aa5e9d43a38dcdfa0878ed750cf32f98460278
[IPSEC]: Move integrity stat collection into xfrm_input

Similar to the moving out of the replay processing on the output, this
patch moves the integrity stat collectin from x->type->input into
xfrm_input.

This would eventually allow transforms such as AH/ESP to be lockless.

The error value EBADMSG (currently unused in the crypto layer) is used
to indicate a failed integrity check.  In future this error can be
directly returned by the crypto layer once we switch to aead
algorithms.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
net/ipv4/esp4.c
net/ipv6/ah6.c
net/ipv6/esp6.c
net/xfrm/xfrm_input.c