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
crypto/cnxk: use atomics to access CPT res
[dpdk.git]
/
drivers
/
crypto
/
qat
/
qat_sym_session.h
diff --git
a/drivers/crypto/qat/qat_sym_session.h
b/drivers/crypto/qat/qat_sym_session.h
index
e003a34
..
6ebc176
100644
(file)
--- a/
drivers/crypto/qat/qat_sym_session.h
+++ b/
drivers/crypto/qat/qat_sym_session.h
@@
-5,7
+5,7
@@
#define _QAT_SYM_SESSION_H_
#include <rte_crypto.h>
#define _QAT_SYM_SESSION_H_
#include <rte_crypto.h>
-#include <
rte_
cryptodev_pmd.h>
+#include <cryptodev_pmd.h>
#ifdef RTE_LIB_SECURITY
#include <rte_security.h>
#endif
#ifdef RTE_LIB_SECURITY
#include <rte_security.h>
#endif
@@
-48,6
+48,13
@@
#define QAT_AES_CMAC_CONST_RB 0x87
#define QAT_AES_CMAC_CONST_RB 0x87
+#define QAT_CRYPTO_SLICE_SPC 1
+#define QAT_CRYPTO_SLICE_UCS 2
+#define QAT_CRYPTO_SLICE_WCP 4
+
+#define QAT_SESSION_IS_SLICE_SET(flags, flag) \
+ (!!((flags) & (flag)))
+
enum qat_sym_proto_flag {
QAT_CRYPTO_PROTO_FLAG_NONE = 0,
QAT_CRYPTO_PROTO_FLAG_CCM = 1,
enum qat_sym_proto_flag {
QAT_CRYPTO_PROTO_FLAG_NONE = 0,
QAT_CRYPTO_PROTO_FLAG_CCM = 1,
@@
-93,6
+100,13
@@
struct qat_sym_session {
uint8_t is_single_pass;
uint8_t is_single_pass_gmac;
uint8_t is_ucs;
uint8_t is_single_pass;
uint8_t is_single_pass_gmac;
uint8_t is_ucs;
+ uint8_t is_iv12B;
+ uint8_t is_gmac;
+ uint8_t is_auth;
+ uint8_t is_cnt_zero;
+ /* Some generations need different setup of counter */
+ uint32_t slice_types;
+ enum qat_sym_proto_flag qat_proto_flag;
};
int
};
int