git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal/windows: add missing SPDX license tag
[dpdk.git]
/
drivers
/
crypto
/
octeontx2
/
otx2_cryptodev_sec.h
diff --git
a/drivers/crypto/octeontx2/otx2_cryptodev_sec.h
b/drivers/crypto/octeontx2/otx2_cryptodev_sec.h
index
253f62d
..
2849c1a
100644
(file)
--- 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__
#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 {
#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;
};
struct otx2_ipsec_po_out_sa out_sa;
};
- uint64_t
ucmd_w3
;
+ uint64_t
cpt_inst_w7
;
union {
uint64_t ucmd_w0;
struct {
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;
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__ */
#endif /* __OTX2_CRYPTODEV_SEC_H__ */