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
regex/mlx5: support rules import
[dpdk.git]
/
drivers
/
crypto
/
qat
/
qat_sym.h
diff --git
a/drivers/crypto/qat/qat_sym.h
b/drivers/crypto/qat/qat_sym.h
index
02e7239
..
7934dd4
100644
(file)
--- a/
drivers/crypto/qat/qat_sym.h
+++ b/
drivers/crypto/qat/qat_sym.h
@@
-140,20
+140,21
@@
static inline void
qat_crc_verify(struct qat_sym_session *ctx, struct rte_crypto_op *op)
{
struct rte_crypto_sym_op *sym_op = op->sym;
qat_crc_verify(struct qat_sym_session *ctx, struct rte_crypto_op *op)
{
struct rte_crypto_sym_op *sym_op = op->sym;
- uint32_t crc_
offset, crc_length
, crc;
+ uint32_t crc_
data_ofs, crc_data_len
, crc;
uint8_t *crc_data;
if (ctx->qat_dir == ICP_QAT_HW_CIPHER_DECRYPT &&
sym_op->auth.data.length != 0) {
uint8_t *crc_data;
if (ctx->qat_dir == ICP_QAT_HW_CIPHER_DECRYPT &&
sym_op->auth.data.length != 0) {
- crc_
offset
= sym_op->auth.data.offset;
- crc_
length
= sym_op->auth.data.length;
+ crc_
data_ofs
= sym_op->auth.data.offset;
+ crc_
data_len
= sym_op->auth.data.length;
crc_data = rte_pktmbuf_mtod_offset(sym_op->m_src, uint8_t *,
crc_data = rte_pktmbuf_mtod_offset(sym_op->m_src, uint8_t *,
- crc_
offset
);
+ crc_
data_ofs
);
- crc = rte_net_crc_calc(crc_data, crc_length, RTE_NET_CRC32_ETH);
+ crc = rte_net_crc_calc(crc_data, crc_data_len,
+ RTE_NET_CRC32_ETH);
- if (crc != *(uint32_t *)(crc_data + crc_
length
))
+ if (crc != *(uint32_t *)(crc_data + crc_
data_len
))
op->status = RTE_CRYPTO_OP_STATUS_AUTH_FAILED;
}
}
op->status = RTE_CRYPTO_OP_STATUS_AUTH_FAILED;
}
}
@@
-197,7
+198,7
@@
qat_sym_process_response(void **op, uint8_t *resp)
sess = (struct qat_sym_session *)
get_sym_session_private_data(
rx_op->sym->session,
sess = (struct qat_sym_session *)
get_sym_session_private_data(
rx_op->sym->session,
-
cryptodev_qat
_driver_id);
+
qat_sym
_driver_id);
}
rx_op->status = RTE_CRYPTO_OP_STATUS_SUCCESS;
}
rx_op->status = RTE_CRYPTO_OP_STATUS_SUCCESS;