net/hns3: support flow control autoneg for copper port
[dpdk.git] / drivers / crypto / octeontx2 / otx2_cryptodev_sec.h
index 253f62d..87f55c9 100644 (file)
@@ -5,6 +5,8 @@
 #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 {
@@ -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 mode and tunnel type */
+       enum otx2_ipsec_po_mode_type mode_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__ */