#ifndef __OTX2_CRYPTODEV_SEC_H__
#define __OTX2_CRYPTODEV_SEC_H__
+#include <rte_cryptodev.h>
+
#include "otx2_ipsec_po.h"
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 {
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__ */