crypto: chcr - ESN for Inline IPSec Tx
authorAtul Gupta <atul.gupta@chelsio.com>
Fri, 30 Nov 2018 09:02:09 +0000 (14:32 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Dec 2018 06:15:01 +0000 (14:15 +0800)
commit8362ea16f69fe59c4d012f0748e586ad09391f41
tree9dc150c535b4e4d35b0740f607bc56d8a14fe4f6
parentc35828ea906a7c76632a0211e59c392903cd4615
crypto: chcr - ESN for Inline IPSec Tx

Send SPI, 64b seq nos and 64b IV with aadiv drop for inline crypto.
This information is added in outgoing packet after the CPL TX PKT XT
and removed by hardware.
The aad, auth and cipher offsets are then adjusted for ESN enabled tunnel.

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_core.h
drivers/crypto/chelsio/chcr_ipsec.c