]> git.baikalelectronics.ru Git - kernel.git/commit
[IPSEC]: Store xfrm states in security path directly
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Nov 2007 05:44:55 +0000 (21:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:50 +0000 (14:53 -0800)
commit567472951409f2135332e40c7953dcfabf2d29e8
treee00544bd1aa0ab6e2ccb0696e1a89cd4900130e9
parent942d55bb3e5def0ba22ffd268b7969635bb94071
[IPSEC]: Store xfrm states in security path directly

As it is xfrm_input first collects a list of xfrm states on the stack
before storing them in the packet's security path just before it
returns.  For async crypto, this construction presents an obstacle
since we may need to leave the loop after each transform.

In fact, it's much easier to just skip the stack completely and always
store to the security path.  This is proven by the fact that this
patch actually shrinks the code.

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