X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcrypto%2Focteontx2%2Fotx2_cryptodev_sec.h;h=2849c1ab75321087fc604269514026de36713aba;hb=e863fe3a13da89787fdf3b5c590101a3c0f10af6;hp=253f62d873ec086269c6f4a5698f5150d1f30349;hpb=e6c1223dd5cef644f2975e819410d4d116552b1a;p=dpdk.git diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_sec.h b/drivers/crypto/octeontx2/otx2_cryptodev_sec.h index 253f62d873..2849c1ab75 100644 --- a/drivers/crypto/octeontx2/otx2_cryptodev_sec.h +++ b/drivers/crypto/octeontx2/otx2_cryptodev_sec.h @@ -5,6 +5,8 @@ #ifndef __OTX2_CRYPTODEV_SEC_H__ #define __OTX2_CRYPTODEV_SEC_H__ +#include + #include "otx2_ipsec_po.h" struct otx2_sec_session_ipsec_lp { @@ -16,7 +18,7 @@ struct otx2_sec_session_ipsec_lp { struct otx2_ipsec_po_out_sa out_sa; }; - uint64_t ucmd_w3; + uint64_t cpt_inst_w7; union { uint64_t ucmd_w0; struct { @@ -53,6 +55,12 @@ struct otx2_sec_session_ipsec_lp { uint8_t iv_length; /** Auth IV length in bytes */ uint8_t auth_iv_length; + /** IPsec tunnel type */ + enum rte_security_ipsec_tunnel_type tunnel_type; }; +int otx2_crypto_sec_ctx_create(struct rte_cryptodev *crypto_dev); + +void otx2_crypto_sec_ctx_destroy(struct rte_cryptodev *crypto_dev); + #endif /* __OTX2_CRYPTODEV_SEC_H__ */