[IPSEC]: Move state lock into x->type->output
This patch releases the lock on the state before calling x->type->output. It also adds the lock to the spots where they're currently needed. Most of those places (all except mip6) are expected to disappear with async crypto. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/ipv4/ah4.c 6 additions, 1 deletionnet/ipv4/ah4.c
- net/ipv4/esp4.c 8 additions, 2 deletionsnet/ipv4/esp4.c
- net/ipv6/ah6.c 6 additions, 3 deletionsnet/ipv6/ah6.c
- net/ipv6/esp6.c 8 additions, 2 deletionsnet/ipv6/esp6.c
- net/ipv6/mip6.c 4 additions, 0 deletionsnet/ipv6/mip6.c
- net/xfrm/xfrm_output.c 4 additions, 4 deletionsnet/xfrm/xfrm_output.c
Loading
Please register or sign in to comment