[IPSEC]: Move output replay code into xfrm_output
The replay counter is one of only two remaining things in the output code that requires a lock on the xfrm state (the other being the crypto). This patch moves it into the generic xfrm_output so we can remove the lock from the transforms themselves. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/xfrm.h 19 additions, 1 deletioninclude/net/xfrm.h
- net/ipv4/ah4.c 2 additions, 2 deletionsnet/ipv4/ah4.c
- net/ipv4/esp4.c 2 additions, 2 deletionsnet/ipv4/esp4.c
- net/ipv6/ah6.c 2 additions, 2 deletionsnet/ipv6/ah6.c
- net/ipv6/esp6.c 2 additions, 2 deletionsnet/ipv6/esp6.c
- net/xfrm/xfrm_output.c 5 additions, 0 deletionsnet/xfrm/xfrm_output.c
Please register or sign in to comment